命令是:
npm install --registry=https://registry.npm.taobao.org
速度并没有提升
我也遇到这种状况
npm install -g cnpm --registry=https://registry.npm.taobao.org
然后
cnpm install [name]
因为淘宝镜像只保证了你要下载的那个模块本身,但那个模块如果还依赖一些自执行的脚本,而这些脚本里关联了其他指向的依赖,那就快不了。所以终极解决方案就是挂vpn
, |_|