npm install 报错 cb.apply is not a function

npm install 报错 cb.apply is not a function

解决:

win + r 打开运行,输入%appdata%
删除 npm 和 npm-cache 文件夹
执行npm cache clean --force命令
此时应该就可以了。如果还不行,就执行卸载Node.js重新安装。

如果还是不行!!

换yarn
安装yarn npm install -g yarn

yarn install 代替 npm install

然后,

万事大吉

原文地址:https://www.cnblogs.com/ilovexiaoming/p/14681758.html