create-react-app新建项目不全问题

2020-06-08  本文已影响0人  夏夏夏夏顿天

新版的create-react-app,如果你之前在电脑安装过全局create-react-app就会出现项目不全的问题

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.

解决方案:

卸载

npm uninstall -g create-react-app

如果上面不能卸载可以用下面方法

yarn global remove create-react-app

卸载完,然后再用

npx create-react-app [project-name]

就可以了

上一篇 下一篇

猜你喜欢

热点阅读