gruntjs / grunt-cli

Grunt's command line interface.
http://gruntjs.com/
MIT License
706 stars 248 forks source link

npm install -g grunt-cli Error #56

Closed pavelbinar closed 10 years ago

pavelbinar commented 10 years ago

https://gist.github.com/pavelbinar/f19b0a68bbef6b7524e9 Node.js: v0.10.26

Any idea how to fix it?

vladikoff commented 10 years ago
fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /Users/pavelbinar/.nvm/v0.10.26/lib/node_modules/npm/node_modules/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 304 https://registry.npmjs.org/abbrev
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/Users/pavelbinar/.nvm/v0.10.26/lib/node_modules/grunt-cli/node_modules'
npm ERR! error rolling back  grunt-cli@0.1.13 { [Error: ENOTEMPTY, rmdir '/Users/pavelbinar/.nvm/v0.10.26/lib/node_modules/grunt-cli/node_modules']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',

Try npm cache clean and also clear nvm cache if that's a thing. Seems like it cannot delete an older version or something.

pavelbinar commented 10 years ago

Yes, That worked. Thank you!