常用的node.js命令集合 首先win+r开启命令行 node -v #查看安装版本 npm -v #查看npm安装版本 npm config ls -l #产看配置项 可以看到我们的配置项中资源仓库是设置在境外服务器上的,那么以后用npm安装各种依赖,想必就是各种卡顿 了 方法1:设置镜像为淘宝服务器 npm config set registry " https://registry.npm.taobao.org "