create-react-app 创建项目没有src目录,提示you're using an outdated version of create-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 …

原因是create-react-app脚手架版本过低,需要升级到最新

解决办法:删除旧版本安装新版本create-react-app

1、删除旧版

     sudo npm uninstall -g create-react-app

2、重新安装

	sudo npm install -g create-react-app
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章