[NPM解决方案]npm WARN deprecated core-js2.6.11,core-js小于3 is no longer maintained
程序员文章站
2022-03-03 17:38:30
...
【NPM解决方案】npm WARN deprecated [email protected]: [email protected]< 3 is no longer maintained and not recommended for usage
[email protected] MINGW64 /d
$ npm install -g vuepress
npm WARN deprecated [email protected]: [email protected]<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of [email protected]
D:\nodejs\npm-global\vuepress -> D:\nodejs\npm-global\node_modules\vuepress\cli.js
Git bash 全局安装Vuepress时【npm install -g vuepress】报的一个npm WARN
解决方案:
npm install --save -g [email protected]^3
[email protected] MINGW64 /d
$ npm install --save -g [email protected]^3
> [email protected] postinstall D:\nodejs\npm-global\node_modules\core-js
> node -e "try{require('./postinstall')}catch(e){}"
+ [email protected]
added 1 package in 1.706s
网上有些人写的方案不好,他们没有加-g,这样你安装的node_modules就直接被装在当前目录了,直接装在了D盘下,很不好看。
应该开启全局安装,这样方便整理一点。如图: