npm WARN deprecated [email protected] core-js@<3.4 is no longer maintained and not recommended for usa

错误:

npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated [email protected]: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.

输入 npm outdated后,显示:

Package  Current  Wanted  Latest  Location              Depended by
core-js    3.4.8   3.4.8  3.20.2  node_modules/core-js  npmdemo

??????

后来上网试了各种方法

npm install [email protected]  -g

好像安装成功了,但输入babel --version还是没用。不管了

更新

最后解决方法:将node_global的路径配置到环境变量就可以看babel --version了 捏吗的

你可能感兴趣的:(前端,html,maven,java,intellij-idea)