npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at: npm ERR! npm | Home
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\lenovo\AppData\Roaming\npm-cache_logs\2024-07-24T06_55_22_252Z-debug.log
解决:
-
npm cache clean --force然后删除node_modules再重新npm install
-
npm install --registry=https://registry.npm.taobao.org
可能和网络有关系,重复清缓存和mode_modules再npm install了好几次才成功
又遇到了,解决不了,直接用别人的
package-lock.json再npm install成功了