create-react-app新建項(xiàng)目不全問(wèn)題

新版的create-react-app,如果你之前在電腦安裝過(guò)全局create-react-app就會(huì)出現(xiàn)項(xiàng)目不全的問(wèn)題

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.

解決方案:

卸載

npm uninstall -g create-react-app

如果上面不能卸載可以用下面方法

yarn global remove create-react-app

卸載完,然后再用

npx create-react-app [project-name]

就可以了

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容