NPM Error on installing packages


#1

Just upgraded to 0.115 and now get this error when installing packages:

npm ERR! TypeError: gid must be an unsigned int
npm ERR! at Object.fs.chown (fs.js:853:11)
npm ERR! at Object.chown (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/graceful-fs/polyfills.js:131:17)
npm ERR! at /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/lib/cache.js:1156:18
npm ERR! at /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/slide/lib/async-map.js:54:35
npm ERR! at Array.forEach (native)
npm ERR! at /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/slide/lib/async-map.js:54:11
npm ERR! at Array.forEach (native)
npm ERR! at asyncMap (/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/node_modules/slide/lib/async-map.js:53:8)
npm ERR! at /Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/lib/cache.js:1144:11
npm ERR! at process._tickCallback (node.js:415:13)
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Darwin 13.3.0
npm ERR! command “/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/bin/node” “/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/node_modules/npm/bin/npm-cli.js” “–globalconfig” “/Applications/Atom.app/Contents/Resources/app/apm/node_modules/atom-package-manager/.apmrc” “–userconfig” “/Users/hyraxx/.atom/.apmrc” “install” “/Users/hyraxx/.atom/.node-gyp/.atom/.apm/fizzy/0.15.0/package.tgz” “–target=0.11.10” "–arch=x64"
npm ERR! cwd /private/var/folders/lj/k08z0whn7cjfgmpy3znbhlbh0000gn/T/apm-install-dir-114612-13408-1lodhfh
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.4
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /private/var/folders/lj/k08z0whn7cjfgmpy3znbhlbh0000gn/T/apm-install-dir-114612-13408-1lodhfh/npm-debug.log
npm ERR! not ok code 0


#2

Have you followed the steps in the Debugging document? Also, can you supply the following information?

  • What OS and version are you on?
  • Is this from the Settings View? Or the command line?
  • If at the command line, what is the exact command you executed?

#3

Hi,

Yes to the debug doc and still shows in safemode, error occurs in the settings view and running Mac OS 10.9.4


#4

Short term fix was to delete .node-gyp folder and it back working