stefanjudis / grunt-phantomas

Grunt plugin wrapping phantomas to measure frontend performance
MIT License
285 stars 25 forks source link

Installing for --save-dev requires root privileges #138

Closed laurentperez closed 9 years ago

laurentperez commented 9 years ago

Hi

npm install grunt-phantomas --save-dev requires root privileges, looks like it is related to html-minifier, it outputs

npm http 304 https://registry.npmjs.org/grunt-phantomas
npm ERR! error rolling back Error: EACCES, unlink '/Users/laurent/Desktop/SVN/airfrance/node_modules/grunt-phantomas/node_modules/.bin/html-minifier'
npm ERR! error rolling back  grunt-phantomas@0.10.0 { [Error: EACCES, unlink '/Users/laurent/Desktop/SVN/airfrance/node_modules/grunt-phantomas/node_modules/.bin/html-minifier']

I can sudo npm install, however I can't sudo on our CI server where I want to run grunt-phantomas :) any clues ?

thanks

laurentperez commented 9 years ago

no

stefanjudis commented 9 years ago

Huh, solved?

I'm running it on our CI servers and actually have no problems and no need for sudo.