<p dir="auto">Running Atom Version 0.176.0 (0.176.0) and atom-fixmyjs 1.3.0<br>
Originally from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="56325194" data-permission-text="Title is private" data-url="https://github.com/sindresorhus/atom-fixmyjs/issues/7" data-hovercard-type="issue" data-hovercard-url="/sindresorhus/atom-fixmyjs/issues/7/hovercard" href="https://github.com/sindresorhus/atom-fixmyjs/issues/7">sindresorhus/atom-fixmyjs/issues/7</a></p>
<p dir="auto">Reproduceable. This appears to be an atom bug, rather than in the atom-fixmyjs package. It looks like there is an npm install error where the fixmyjs dependency doesn't get installed. Previous versions of Atom worked fine, and there were no relevant changes in atom-fixmyjs.</p>
<p dir="auto">If I go to ~/.atom/packages/fixmyjs and run npm install it works, but with a clean install without manually installing the dependency, if I go to the command palette I can execute FixMyJS the web developer view will show this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Failed to activate package named 'fixmyjs' Error: Cannot find module 'fixmyjs'
  at Module._resolveFilename (module.js:344:15)
  at Function.Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app/src/module-cache.js:383:52)
  at Function.Module._load (module.js:286:25)
  at Module.require (module.js:373:17)
  at require (module.js:392:17)
  at Object.&lt;anonymous&gt; (/Users/gears/.atom/packages/fixmyjs/index.js:2:15)
  at Module._compile (module.js:468:26)
  at Object.Module._extensions..js (module.js:486:10)
  at Module.load (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:318:12)
  at Module.require (module.js:373:17)
  at require (module.js:392:17)
  at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app/src/package.js:623:34)
  at Package.module.exports.Package.activateConfig (/Applications/Atom.app/Contents/Resources/app/src/package.js:250:12)
  at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app/src/package.js:232:14)
  at /Applications/Atom.app/Contents/Resources/app/src/package.js:682:29
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:224:20)
  at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
  at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app/node_modules/command-palette/lib/command-palette-view.js:120:32)
  at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app/node_modules/go-to-line/node_modules/atom-space-pen-views/lib/select-list-view.js:336:21)
  at space-pen-li.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/app/node_modules/go-to-line/node_modules/atom-space-pen-views/lib/select-list-view.js:140:19)
  at HTMLOListElement.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/archive-view/node_modules/atom-space-pen-views/node_modules/space-pen/vendor/jquery.js:4676:9)
  at HTMLOListElement.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/archive-view/node_modules/atom-space-pen-views/node_modules/space-pen/vendor/jquery.js:4360:46)"><pre class="notranslate"><code class="notranslate">Failed to activate package named 'fixmyjs' Error: Cannot find module 'fixmyjs'
  at Module._resolveFilename (module.js:344:15)
  at Function.Module._resolveFilename (/Applications/Atom.app/Contents/Resources/app/src/module-cache.js:383:52)
  at Function.Module._load (module.js:286:25)
  at Module.require (module.js:373:17)
  at require (module.js:392:17)
  at Object.&lt;anonymous&gt; (/Users/gears/.atom/packages/fixmyjs/index.js:2:15)
  at Module._compile (module.js:468:26)
  at Object.Module._extensions..js (module.js:486:10)
  at Module.load (/Applications/Atom.app/Contents/Resources/app/node_modules/coffee-script/lib/coffee-script/register.js:45:36)
  at Function.Module._load (module.js:318:12)
  at Module.require (module.js:373:17)
  at require (module.js:392:17)
  at Package.module.exports.Package.requireMainModule (/Applications/Atom.app/Contents/Resources/app/src/package.js:623:34)
  at Package.module.exports.Package.activateConfig (/Applications/Atom.app/Contents/Resources/app/src/package.js:250:12)
  at Package.module.exports.Package.activateNow (/Applications/Atom.app/Contents/Resources/app/src/package.js:232:14)
  at /Applications/Atom.app/Contents/Resources/app/src/package.js:682:29
  at Emitter.module.exports.Emitter.emit (/Applications/Atom.app/Contents/Resources/app/node_modules/event-kit/lib/emitter.js:82:11)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:224:20)
  at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
  at CommandPaletteView.module.exports.CommandPaletteView.confirmed (/Applications/Atom.app/Contents/Resources/app/node_modules/command-palette/lib/command-palette-view.js:120:32)
  at CommandPaletteView.module.exports.SelectListView.confirmSelection (/Applications/Atom.app/Contents/Resources/app/node_modules/go-to-line/node_modules/atom-space-pen-views/lib/select-list-view.js:336:21)
  at space-pen-li.&lt;anonymous&gt; (/Applications/Atom.app/Contents/Resources/app/node_modules/go-to-line/node_modules/atom-space-pen-views/lib/select-list-view.js:140:19)
  at HTMLOListElement.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/archive-view/node_modules/atom-space-pen-views/node_modules/space-pen/vendor/jquery.js:4676:9)
  at HTMLOListElement.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/archive-view/node_modules/atom-space-pen-views/node_modules/space-pen/vendor/jquery.js:4360:46)
</code></pre></div>
<p dir="auto">I made a package called <a href="https://atom.io/packages/tidy-markdown" rel="nofollow">tidy-markdown</a>, that depends on an npm package of the <a href="https://github.com/slang800/tidy-markdown">same name</a> (and currently the same version too). The atom package is just a thin wrapper around the npm package, so it didn't seem like it should have a different name, and I certainly didn't want to add a "atom-" prefix to the actual package name.</p>
<p dir="auto">However, when I run <code class="notranslate">apm install tidy-markdown</code>, the resulting installation is missing the tidy-markdown dep (<code class="notranslate">~/.atom/packages/tidy-markdown/node_modules/tidy-markdown</code>). The other dep, emissary, installs just fine. The installation doesn't produce any error or warning, it just fails when I open atom, resulting in this error: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="60840992" data-permission-text="Title is private" data-url="https://github.com/notslang/atom-tidy-markdown/issues/1" data-hovercard-type="issue" data-hovercard-url="/notslang/atom-tidy-markdown/issues/1/hovercard" href="https://github.com/notslang/atom-tidy-markdown/issues/1">notslang/atom-tidy-markdown#1</a></p>
<p dir="auto">Also, if I cd into the directory of the package (<code class="notranslate">~/.atom/packages/tidy-markdown</code>) and just run <code class="notranslate">apm install</code>, the <code class="notranslate">tidy-markdown</code> npm package is installed into <code class="notranslate">~/.atom/packages/tidy-markdown/node_modules/tidy-markdown</code>, and works as expected.</p>