2. 针对某一项设置,可以通过
npm config set 属性名 属性值
的方式来进行配置。
例如:
npm config set prefix "C:\123\"
3. 读取某一项配置
npm config get prefix
4.npm 的常用命令
来源: