Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nodejs install global packages #484

Open
FDiskas opened this issue Jul 27, 2015 · 2 comments
Open

nodejs install global packages #484

FDiskas opened this issue Jul 27, 2015 · 2 comments

Comments

@FDiskas
Copy link

FDiskas commented Jul 27, 2015

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

@thibmaek
Copy link

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

@FDiskas
Copy link
Author

FDiskas commented Jul 28, 2015

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
#484 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants