设置到F盘下的对应文件夹
npm config set cache "F:\node_cache" npm config set prefix "F:\" 以后安装的全局模块都会被放到F:\node_modules下,跟npm模块在一个文件夹中
查看配置结果:
npm config ls
编辑系统环境变量
设置到F盘下的对应文件夹
npm config set cache "F:\node_cache" npm config set prefix "F:\" 以后安装的全局模块都会被放到F:\node_modules下,跟npm模块在一个文件夹中
查看配置结果:
npm config ls
编辑系统环境变量
相关文章: