ho-nl / vagrant-development-box

Maintainer: Paul
MIT License
0 stars 0 forks source link

Make sure the include paths for nodejs work as expected #71

Open paales opened 6 years ago

paales commented 6 years ago

https://docs.npmjs.com/getting-started/fixing-npm-permissions#option-2-change-npms-default-directory-to-another-directory

#as user
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
export PATH=~/.npm-global/bin:$PATH
source ~/.profile

npm install -g gulp grunt grunt-cli bower polymer-cli