尽管我的 npm 版本是 6.9.0,但我在 Linux 中执行 npm install 时收到此错误“npm ERR!cb.apply 不是函数”。我的 Node 版本是 v12.18.3。如何解决这个问题?
最佳答案
如果您在 Windows 或 Linux 上共享会有所帮助,但错误似乎发生在 Windows 上。 Possible solution :
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
应该工作正常。
关于node.js - npm 错误! cb.apply 不是函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63429304/