按照官网执行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. Please note that global installs of create-react-app are no longer supported.
查看文件只有node_modules、package.json、package.json

需要把本地全局的create-react-app卸载掉
因为本地有用过npm、cnpm、yarn安装过,通过命令查看发现无论哪个都没有
npm list -g --depth 0
cnpm list -g --depth 0
yarn global list
后面发现是nvm经常切换node版本,在某个node版本安装了

执行卸载命令npm uninstall -g create-react-app
或者把create-react-app.cmd2个文件直接删掉即可