[英]React Js, Template Not Provided On npx create-react-app <app name>
[英]create-react-app not working 'A template was not provided'
您好,我在使用 create-react-app 時遇到了一些問題:
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
npm WARN deprecated svgo@1.3.2:不再支持此 SVGO 版本。 升級到 v2.xx
22m內新增1376個包,審核1377個包
181包正在找資金跑npm fund
詳情
6 個中等嚴重程度的漏洞
要解決所有問題,請運行:npm audit fix
運行npm audit
了解詳情。
未提供模板。 這可能是因為您使用的是過時版本的 create-react-app。 請注意,不再支持全局安裝 create-react-app。 您可以通過在再次使用 create-react-app 之前運行 npm uninstall -g create-react-app 或 yarn global remove create-react-app 來解決此問題。
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
我已經嘗試了 create-react-app 官方網站的推薦步驟: npm uninstall -g create-react-app - 這沒有用。
我已經清除了npm 緩存,也沒有用。
我用“ where create-react-app ”進行了搜索,所以我可以刪除它,但沒有任何效果。
有人可以幫我解決這個問題嗎? 非常感謝你。
在嘗試了很多類似的答案后,我找到的解決方案如下:
npm uninstall -g create-react-app
npm cache clean --force
npx create-react-app@latest your-app-name
注意“@latest”create-react-app。
希望能幫助到你
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.