在开发项目安装依赖时(npm install) 往往会报 npm ERR! cb()never called!的错误

1、报错

 

 2、解决办法(首先要以管理员模式打开cmd

1 npm cache clean -f
2 npm install -g n
3 npm install -g n --force

 

 

1 npm install -g n --force
2 npm install

 

posted @ 2020-11-04 11:58  一江春水向东刘小姐  阅读(262)  评论(0编辑  收藏  举报