react 创建脚手架报错npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not

全局安装(npm install -g create-react-app//npm i create-react-app -g)脚手架时报错npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.解决办法:

 

 报错原因:tar版本过低,需要升级tar版本。

 解决步骤:

 1.执行  npm install -g tar

2.检查一下npm 和node的版本(Node 14.0.0 、npm  5.6以上)如果版本低于升级版本

3. 执行npx create-react-app my-app 

直到出现 happy hacking!则为创建成功

猜你喜欢

转载自blog.csdn.net/m0_61043829/article/details/130809766
今日推荐