执行"npx create-react-app my-app"时,报错:“A template was not provided. This is likely because you’re using an outdated version of create-react-app.”
翻译:未提供模板。这可能是因为您使用的是过时版本的create-react-app。
解决办法
1、首先卸载掉旧版本,并且要确保卸载成功了
npm uninstall -g create-react-app
rm -rf /usr/local/bin/create-react-app
2、重新安装新版本
npm install -g create-react-app