今天碰到一个npm install 问题.一直循环安装不上.
很多时候是有些模块版本过低.
npm update 模块名字
然后可以清除registry :
npm config list
; cli configs
user-agent = "npm/3.10.10 node/v6.10.2 win32 x64"
; userconfig C:\Users\Administrator\.npmrc
registry = "https://registry.npm.taobao.org/"
; builtin config undefined
prefix = "C:\\Users\\Administrator\\AppData\\Roaming\\npm"
; node bin location = D:\software\node\node.exe
; cwd = C:\Users\Administrator
; HOME = C:\Users\Administrator
; "npm config ls -l" to show all defaults.
npm delete registry
nrm ls
nrm use taobao
就可以了.