node和npm
下载安装node,安装好后node后默认就自带了npm
sudo apt install node
查看版本
node -v
npm -v
安装nrm镜像切换工具
npm install nrm -g
(常用的 -g 代表全局以后也可以使用的组件,--save 保存到当前以后无法继续使用每次使用都要下载)
安装好后使用
nrm ls
查看镜像
nrm test npm 可以测试当前npm使用的镜像的速度
nrm test taobao 可以测试淘宝镜像的速度
使用
nrm use taobao 切换到taobao镜像
切换为taobao后,可以查看是否切换成功
nrm ls
注:安装完一定要重启一下!!!!