npm安裝依賴報錯: npm ERR! cb() never called! npm ERR! This is an error with npm itself.
一. 問題描述
用npm安裝依賴報錯:文章來源:http://www.zghlxwxcb.cn/news/detail-829450.html
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! <https://npm.community>
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-12-16T07_38_47_793Z-debug.log
二. 問題解決
這個問題困擾了我?guī)滋?,網(wǎng)上答案五花八門,不過對我來說,那些方法都沒有效果,記錄一下我解決這個錯誤的步驟,如下:文章來源地址http://www.zghlxwxcb.cn/news/detail-829450.html
- 刪除下載好的node_modules
- 刪除package-lock.json文件
- 清除npm緩存 npm cache clean
- npm install
到了這里,關于【已解決】npm安裝依賴報錯: npm ERR! cb() never called! npm ERR! This is an error with npm itself.的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關文章,希望大家以后多多支持TOY模板網(wǎng)!