安装完node之后就可以使用npm了,node安装参考node安装教程
npm缓存目录默认在C盘,建议手动修改一下目录
npm config list
npm config get cache
npm cache clean --force
npm config set prefix "D:\temp\node-global"
npm config set cache "D:\temp\node-cache"
npm get registry
npm config set registry http://registry.npm.taobao.org/