npm使用淘宝镜像


在国内使用npm安装镜像的时候非常的慢,而且有时还断网下不了。可能是npm官方镜像在国内可能不太稳定,可以切换npm的国内镜像 修改成淘宝镜像源 npm set registry https://registry.npmmirror.com/ 测试 npm config get registry

安装 npm 包的旧版本


查看软件包所有的版本 npm view <package> versions >npm view protobufjs versions [ '0.0.0', '0.9.1', '0.9.3', '0.9.4', '0.9.5', '0.9.6', '0.9.7',

Ubuntu安装npm(nodejs)环境

Ubuntu 

一键安装脚本 #!/bin/bash sudo apt-get -y install build-essential cd /home git clone https://github.com/cnpm/nvm.git source /home/nvm/nvm.sh echo "source /ho