因为苦于C盘不够的烦恼,不想把全局安装包的路径弄在C盘,于是有了这篇文章:
查看设置
npm config ls //查看设定信息,,找到prefix一行,默认是一般是在C盘
修改命令如下
npm config set prefix "" //引号内填全局安装的默认路径
再调用一下npm config ls就可以看到prefix的路径改了,之后全局安装包就不会在C盘了(`・ω・´)
npm config ls