Vaprobash icon indicating copy to clipboard operation
Vaprobash copied to clipboard

nodejs install global packages

Open FDiskas opened this issue 10 years ago • 2 comments

Then vagrant is provisioned the packages like grunt or bower still not found. I guess that this must be installed as sudo like sudo npm install -g grunt-cli

FDiskas avatar Jul 27 '15 16:07 FDiskas

Probably an error on your end. Global node modules are installed fine here.

Sudo is actually not needed (and it's bad practice to do so) since the npm prefix is set to /home/vagrant/npm and root permissions are not required in the home folder.

Check back on your configuration because the default config from Vaprobash should work

thibmaek avatar Jul 28 '15 08:07 thibmaek

I did not change the Vaprobash. But if I ssh to vagrant and try tu use "grunt" it frows error

Vytenis Kučiauskas On Jul 28, 2015 11:12 AM, "Thibault Maekelbergh" [email protected] wrote:

Probably an error on your end. Global node modules are installed fine here.

Sudo is actually not needed (and it's bad practice http://stackoverflow.com/questions/16724259/npm-command-sudo-or-not to do so) since the npm prefix is set to /home/vagrant/npm https://github.com/fideloper/Vaprobash/blob/master/scripts/nodejs.sh#L62 and root permissions are not required in the home folder.

Check back on your configuration because the default config from Vaprobash should work

— Reply to this email directly or view it on GitHub https://github.com/fideloper/Vaprobash/issues/484#issuecomment-125493835 .

FDiskas avatar Jul 28 '15 08:07 FDiskas