全局安装npm installg createreactapp//npm i createreactapp -g)脚手架报错npm WARN deprecated tar@2.2.2: 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.检查一下npmnode版本(Node 14.0.0 、npm  5.6以上)如果版本低于升级版本

3. 执行npx createreactapp myapp 

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

 

 

 

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注