第一个解决方法
清缓存 npm cache clean --force
第二个解决方法
依次找到C:\Users\你的电脑名称\AppData\Roaming\npm下面有关create-react-app字眼的文件夹删掉,我是这四个文件,删掉后重新执行
npm install create-react-app -g
create-react-app 项目名称
cd 项目名称
yarn start
第三个解决方法
换个命令试下
create-react-app (项目名字)--template typescript