[英]I can't create a template using create-react-app. getting the error message: a template was not provided. or ERROR 404
It's been many days that I am completely stuck and not able to create a react app.已经有很多天了,我完全被卡住了,无法创建一个反应应用程序。 I went through many Stakeoverflow conversations and tried in different ways but I keep on getting error messages: erro404 or error code1 or a template was not provided, and never succeed to create a template.
我经历了许多 Stakeoverflow 对话并尝试了不同的方式,但我不断收到错误消息:erro404 或错误代码1 或未提供模板,并且从未成功创建模板。 I've uninstalled and reinstalled Node version 16.13.1, my npm version is 8.1.2.
我已经卸载并重新安装了 Node 版本 16.13.1,我的 npm 版本是 8.1.2。 I've tried:
我试过了:
npm uninstall -g create-react-app
npm install -g create-react-app
npm cache clean
npm rebuild
npm cache clean --force
npx clear-npx-cache
npm audit npm audit fix
npx create-react-app my-app --template[template-name]
npm config set registry http://registry.npmjs.org
sudo npm i -g create-react-app
I also checked the npm status on https://status.npmjs.org/ and everything looks normal.我还检查了https://status.npmjs.org/上的 npm 状态,一切正常。 I don't know what else to try.
我不知道还能尝试什么。 Do you have any idea of how I can fix it?
你知道我该如何解决吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.