Skip to content
New issue

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

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

Already on GitHub? # to your account

Remove custom NPM package prefix #505

Merged
merged 1 commit into from
Sep 28, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions scripts/nodejs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,6 @@ if [[ $NODE_IS_INSTALLED -ne 0 ]]; then

nvm use default

echo ">>> Starting to config Node.js"

# Change where npm global packages are located
npm config set prefix /home/vagrant/npm

if [[ -f "/home/vagrant/.profile" ]]; then
# Add new NPM Global Packages location to PATH (.profile)
printf "\n# Add new NPM global packages location to PATH\n%s" 'export PATH=$PATH:~/npm/bin' >> /home/vagrant/.profile

# Add new NPM root to NODE_PATH (.profile)
printf "\n# Add the new NPM root to NODE_PATH\n%s" 'export NODE_PATH=$NODE_PATH:~/npm/lib/node_modules' >> /home/vagrant/.profile
fi

fi

# Install (optional) Global Node Packages
Expand Down