npm ERR! cb() never called! npm ERR! This is an error with npm itself. Pleas

npm安装失败:

 解决办法:

1.删除项目中的的node_modules
2.删除项目中的package-lock.json文件

 3.清除npm缓存

npm cache clean --force

 4.安装npm包管理助手 //这步也可省略

npm install -g n --force

 5.安装npm

npm install

 6.中途可能会报错

报错内容: Module build failed: Error: ENOENT: no such file or directory, scandir 'C:\Users\modo_\IdeaProjects\checkpage\src\node_modules\node-sass\vendor'

 办法:npm rebuild node-sass

7,如果还不行则执行以下操作

删除C盘存在的npm缓存,以及再次删掉项目中存在node-modules

8.删完后再次执行命令

1. 构建  npm rebuild node-sass

2.安装:npm install

3.运行:npm run serve   //  npm run dev

猜你喜欢

转载自blog.csdn.net/qq_46687516/article/details/120324260