在公司是连代理服务器上网的,在某天突然发现npm install xxxx用不了了,报错如下:
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
突然想起来前几天改了密码
直接把C:\Users\用户名\.npmrc 这个文件里面的账号密码重设一下就好了。
当然,如果没有这个文件的话就是没有设置代理,上百度搜一下npm怎么设置代理就好了