NodeJS常用笔记
修改全局路径
/**设置全局路径**/
npm config set prefix “D:\SoftWare\NodeJS_Redis\NodeJS\node_modules\node_global”
/**设置全局cache路径**/
npm config set cache “D:\SoftWare\NodeJS_Redis\NodeJS\node_modules\node_cache”
1
2
3
4
2
3
4
版本升级
npm i -g npm to update
1
查看配置
npm config ls
1
nrm管理npm源
一:安装nrm
npm install -g nrm
1
二:常用命令
-
1.nrm ls 查看已有的源
-
2.nrm add <源名称> <源地址> //新增源
-
3.nrm use <源名称>. //切换源
预览
除特别注明外,本站所有文章均为 windcoder 原创,转载请注明出处来自: nodejschangyongbiji
Loading comments...

预览
暂无数据