Can't install any packages with Atom (via app or command line)


#1

When trying to install any packages with Atom, I consistently get the following error:

npm ERR! Darwin 14.5.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/my-home-directory/.atom/.apm/.apmrc" "--userconfig" "/Users/my-home-directory/.atom/.apmrc" "install" "/private/var/folders/nd/pwrvlc2566j7l5dqt6v847nr00010r/T/d-115728-12694-edaeim/package.tgz" "--target=0.22.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.14.0

npm ERR! gid must be an unsigned int
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Darwin 14.5.0
npm ERR! argv "/Applications/Atom.app/Contents/Resources/app/apm/bin/node" "/Applications/Atom.app/Contents/Resources/app/apm/node_modules/npm/bin/npm-cli.js" "--globalconfig" "/Users/my-home-directory/.atom/.apm/.apmrc" "--userconfig" "/Users/my-home-directory/.atom/.apmrc" "install" "/private/var/folders/nd/pwrvlc2566j7l5dqt6v847nr00010r/T/d-115728-12694-edaeim/package.tgz" "--target=0.22.0" "--arch=x64"
npm ERR! node v0.10.35
npm ERR! npm  v2.14.0

npm ERR! gid must be an unsigned int
npm ERR! 
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /private/var/folders/nd/pwrvlc2566j7l5dqt6v847nr00010r/T/apm-install-dir-115728-12694-10vh1mi/npm-debug.log

I have tried a number of suggestions from similar threads, including the following, with no success:

  • removing and doing a clean install of Atom
  • uninstalling and reinstalling Node/npm
  • changing permissions for or deleting the .node-gyp directory
  • using sudo apm install [package]
  • opening Atom in safe mode

I’m on a Mac running OS 10.10.5.
Node is installed via Homebrew (though it looks like Atom uses its own version?)
atom 1.0.7
apm 1.0.1
npm 2.14.0
node 0.10.35
python 2.7.10
git 2.5.0

So it doesn’t appear to be a basic permissions issue, and it’s probably not a conflict with any settings or packages since I have a clean install… Any suggestions?

FWIW the npm-debug.log file listed in the error doesn’t look like it exists (there is no [apm-install-dir-…] that I can find)