我收到这个错误
npm ERR! cb.apply is not a function
在Linux中做的时候npm install
虽然我的npm版本是6.9.0。我的节点版本是v12.18.3。如何解决这个问题?
如果您共享的是 Windows 或 Linux,将会很有帮助,但该错误似乎发生在 Windows 上。可能的解决方案 https://github.com/nodejs/help/issues/2874:
1. Go to C:\Users(your username)\AppData\Roaming
2. Delete the npm folder (possibly back it up) and if there is one npm cache folder.
3. Run `npm cache clear --force` (--force is now required to clean cache)
在那之后,npm install
应该可以正常工作。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)