vue-报错npm ERR! cb() never called! npm ERR! This is an error with npm itself. P

在vue项目中安装依赖包用npm install之后,报错:

尝试 删除项目中的 package-lock.json 文件 和 node_modules 文件夹,然后再尝试 npm install. 但是还是有报错:

[email protected] npm ERR! code ELIFECYCLE npm ERR! errno 1

解决方法:
npm install [email protected] --ignore-scripts

或者(安装方法)

npm install chromedriver --chromedriver_cdnurl=https://npm.taobao.org/mirrors/chromedriver

但是还是有报错,我也很绝望啊

报错内容: 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

猜你喜欢

转载自blog.csdn.net/weixin_44517301/article/details/114788143