lxq.link

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
上一篇:显示器升级
下一篇:PowerShell 中提示在此系统上禁止运行脚本