npm安装依赖时提示:
npm WARN npm npm does not support Node.js v14.14.0 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm can’t make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11. npm WARN npm You can find the latest version at nodejs.org/ npm ERR! cb.apply is not a function npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\pc\AppData\Roaming\npm-cache_logs\2020-10-23T08_30_48_20
报错的原因是因为node版本和npm版本不一致导致的 解决方案 .在百度搜索node.js以往版本对照,网址如下 node版本对照 (nodejs.org/zh-cn/downl…)
然后根据自己的node版本来更新npm 版本 npm -g install npm@6.14.8
如果仍然报错,依旧显示npm 不支持这个版本 ,这说明npm存在旧的npm缓存,还是旧的npm 环境 此时需要到C:\Users\pc\AppData\Roaming 根目录下
删除npm, npm-cache两 个文件 再执行npm -g install npm@6.14.8