GruntJS error installing plugin using Vagrant

2

I try to install puglin

  

npm install grunt-contrib-uglify --save-dev

In my project using vagrant and gives permission error follows below:

npm ERR! Please try running this command again as root/Administrator.
npm ERR! Linux 3.13.0-61-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "grunt-contrib-     uglify" "--save-dev"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! path npm-debug.log.4d84521811f489f4938c27a69db45fbf
npm ERR! code ETXTBSY
npm ERR! errno -26

npm ERR! ETXTBSY, rename 'npm-debug.log.4d84521811f489f4938c27a69db45fbf'
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!     /vagrant/angular-grunt/npm-debug.log
    
asked by anonymous 21.09.2015 / 04:41

1 answer

2

You have to run the command as root or use sudo:

sudo npm install grunt-contrib-uglify --save-dev
    
21.09.2015 / 06:13