首页 > 移动平台 > 详细

React create-react-app创建项目时,控制台爆出这个错误

时间:2021-04-07 12:33:43      阅读:17      评论:0      收藏:0      [点我收藏+]

今天在安装react脚手架模板项目的时候出现错误如下

A template was not provided. This is likely because you‘re using an outdated version of create-react-app.
Please note that global installs of create-react-app are no longer supported.
You can fix this by running npm uninstall -g create-react-app or yarn global remove create-react-app before using create-react-app again.

 

但是我尝试了几次卸载依然不能成功。

应该是以前安装过有老版本的缓存

 

解决方法: 删除node安装目录的 C:\node\node_global 和 C:\node\node_cache的缓存  重新npm install -g create-react-app

React create-react-app创建项目时,控制台爆出这个错误

原文:https://www.cnblogs.com/ives-xu/p/14626735.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!