配置国内下载源命令:
npm config set registry https://registry.npm.taobao.org
或者使用
npm config set registry http://registry./cnpmjs.org
– 配置后可通过下面方式来验证是否成功
npm config get registry
或
npm info express
然后
npm install
配置国内下载源命令:
npm config set registry https://registry.npm.taobao.org
或者使用
npm config set registry http://registry./cnpmjs.org
– 配置后可通过下面方式来验证是否成功
npm config get registry
或
npm info express
然后
npm install