我是靠谱客的博主 美好小鸽子,这篇文章主要介绍npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive se,现在分享给大家,希望可以做个参考。

   

全局安装:npm i -g create-react-app

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

 解决步骤:

 1.执行  npm install -g tar

 2.无法解决

 3.查看npm 、node版本(确保在Node 14.0.0 、npm  5.6以上)

 

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

npm install -g create-react-app  ==》 create-react-app my-app   

等价于   

npx create-react-app my-app

npx create-react-app my-app命令会临时安装 create-react-app 包,命令完成后create-react-app 会删掉,不会出现在 global 中。下次再执行,还是会重新临时安装。

最后

以上就是美好小鸽子最近收集整理的关于npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive se的全部内容,更多相关npm内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(78)

评论列表共有 0 条评论

立即
投稿
返回
顶部