react / 常用筆記

create-react-app: Template not provided using create-react-app 時的解決方案

使用 create-react-app時,完成時會出現以下字樣,會無法使用 crate-react-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.

解決方案

1. which create-react-app 查詢 global 的 create-react-app 安裝位置

2. rm -rf create-react-app 依照路徑刪除 create-react-app file

3. npx create-react-app my-app 就能成功了

© 2024 胡同筆記 | WordPress Theme: Cosimo by CrestaProject.