この文書の現在のバージョンと選択したバージョンの差分を表示します。
| 次のリビジョン | 前のリビジョン | ||
|
react:エラー [2019/12/30 17:33] ips 作成 |
react:エラー [2020/01/01 06:23] (現在) ips |
||
|---|---|---|---|
| ライン 1: | ライン 1: | ||
| ====== エラー ====== | ====== エラー ====== | ||
| - | <code node> | + | [[https://qiita.com/kijibato/items/ca74c6582141f3292240|ひさしぶりにcreate-react-appしたらテンプレートができなかった時の対処法]] |
| - | >npx create-react-app react-typescript --typescript | + | |
| - | + | ||
| - | ・・・ | + | |
| + | <code> | ||
| + | >npx create-react-app react-typescript --typescript | ||
| + | ↓ | ||
| A template was not provided. This is likely because you're using an outdated version of create-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. | Please note that global installs of create-react-app are no longer supported. | ||
| </code> | </code> | ||
| + | |||
| + | グローバルのcreate-react-appを削除して、再度npxでcreate-react-appした。 | ||
| + | <code> | ||
| + | // アンインストール | ||
| + | >npm uninstall -g create-react-app | ||
| + | up to date in 0.026s | ||
| + | |||
| + | // 失敗したディレクトリを削除 | ||
| + | >rmdir /s react-typescript | ||
| + | |||
| + | // もう一度インストール | ||
| + | >npx create-react-app react-typescript --typescript | ||
| + | </code> | ||
| + | |||
| + | |||
| + | ↓ | ||
| + | テンプレートができない。。。。 | ||
| + | |||
| + | 結局「node」、「nmp」、「nodist」を全てアンインストールし、node,nmpをインストールするとできた。 | ||
| + | |||
| + | ※「node」と「npm」のアンインストールは、コンパネからアンインストールし、 | ||
| + | <html>%USERPROFILE%\AppData\Roaming\npm</html> | ||
| + | <html>%USERPROFILE%\AppData\Roaming\npm-cache</html> | ||
| + | を削除する。 | ||
| + | |||
| + | ※「nodist」もコンパネからアンインストール。 | ||
| + | |||
| + | [[https://qiita.com/akifuyuro/items/d381f3cae832cb2c2d53|【Windows】Node.jsをアンインストールする]] | ||
| + | |||
| + | |||
| + | |||
| + | |||