Change npm's default global package directory
ON THIS PAGE
# Create a directory for global installations
mkdir ~/.npm-global
# Configure npm to use the new directory path
npm config set prefix '~/.npm-global'
# Add environment variable to ~/.bash_profile
export PATH=~/.npm-global/bin:$PATH
# Update system variables:
source ~/.bash_profile
2020-07-08
上一篇:显示器升级