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

在vue項目中安裝依賴包用npm install以後,報錯: vue

嘗試 刪除項目中的 package-lock.json 文件 和 node_modules 文件夾,而後再嘗試 npm install. 可是仍是有報錯:node

chromedriver@2.46.0 npm ERR! code ELIFECYCLE npm ERR! errno 1 chrome

解決方法:

npm install chromedriver@2.46.0 --ignore-scriptsnpm

或者(安裝方法)json

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

可是仍是有報錯,我也很絕望啊ui

報錯內容: Module build failed: Error: ENOENT: no such file or directory, scandir 'C:\Users\modo_\IdeaProjects\checkpage\src\node_modules\node-sass\vendor'url

解決:code

npm rebuild node-sasscdn

相關文章
相關標籤/搜索