【node.js】nrm的使用
作者:互联网
Commands
- NRM: npm registry manager
- Install:
Windows:
npm install -g nrm
Mac:
sudo npm install -g nrm
- 查看可选源:
nrm -ls
- 测试源响应时间:
nrm test npm
nrm test taobao
- 切换源:
nrm use taobao
- 当前镜像
nrm current
- 增加定制源:
nrm add imooc http://192.168.1.100:6666
- 删除源:
nrm del imooc
- 安装开发环境:
Windows:
npm install -g imooc-es-cli
Mac:
sudo npm install -g imooc-es-cli
- 清屏:
Windows:
cls
Mac:
clear
- 查看版本:
package --version
package -V
- 查看当前文件夹下内容:
ls | dir
- 切换文件夹:
cd
- 初始化项目:
项目名 init
- 安装包:
npm install
- 启动项目:
npm run start
- 打包上线
npm run build
标签:node,npm,nrm,Windows,js,Mac,install,imooc 来源: https://blog.csdn.net/qq_37086980/article/details/118246267