Move it away and try? [Grunt] #1011

Closed
hemanth opened this Issue Apr 11, 2013 · 8 comments

5 participants

@hemanth
Yeoman member
npm ERR! error rolling back Error: Refusing to delete: /usr/local/bin/grunt not in /usr/local/lib/node_modules/grunt-cli
npm ERR! error rolling back     at clobberFail (/usr/local/lib/node_modules/npm/lib/utils/gently-rm.js:41:12)
npm ERR! error rolling back     at next (/usr/local/lib/node_modules/npm/lib/utils/gently-rm.js:27:14)
npm ERR! error rolling back     at /usr/local/lib/node_modules/npm/lib/utils/gently-rm.js:36:12
npm ERR! error rolling back     at Object.oncomplete (fs.js:297:15)
npm ERR! error rolling back  grunt-cli@0.1.7 { [Error: Refusing to delete: /usr/local/bin/grunt not in /usr/local/lib/node_modules/grunt-cli] code: 'EEXIST', path: '/usr/local/bin/grunt' }
npm ERR! Refusing to delete: /usr/local/bin/grunt not in /usr/local/lib/node_modules/grunt-cli
File exists: /usr/local/bin/grunt
Move it away, and try again. 

npm ERR! System Darwin 10.8.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "yo" "grunt-cli" "bower"
npm ERR! cwd /Users/hemanth/Desktop
npm ERR! node -v v0.8.14
npm ERR! npm -v 1.1.71
npm ERR! path /usr/local/bin/grunt
npm ERR! code EEXIST
@hemanth
Yeoman member

Was a perm issue. Closing as of now.

@hemanth hemanth closed this Apr 11, 2013
@eddiemonge
Yeoman member

Which folder needed permissions changed?

@hemanth
Yeoman member

@eddiemonge I was a sudo thinge. My F.S were bit screwed

@eddiemonge
Yeoman member

For me, (and for others that may hit this) I manually unlinked /usr/local/bin/grunt (it was a symlink with a root permission) and then re-ran the install. went smooth after that.

@hemanth
Yeoman member

@eddiemonge Oh! ok.

@egoens

@eddiemonge Thanks for the hint. This did the trick for me.

@digitalvapor

Manually removed grunt /usr/local/bin/grunt as well and worked. Thanks!

@ichaleynbin

Can also confirm that removing /usr/local/bin/grunt fixed the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment