ユーザ用ツール

サイト用ツール


react:エラー

差分

この文書の現在のバージョンと選択したバージョンの差分を表示します。

この比較画面にリンクする

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
react:エラー [2019/12/30 17:35]
ips
react:エラー [2020/01/01 06:23] (現在)
ips
ライン 1: ライン 1:
 ====== エラー ====== ====== エラー ======
 +
 +[[https://​qiita.com/​kijibato/​items/​ca74c6582141f3292240|ひさしぶりにcreate-react-appしたらテンプレートができなかった時の対処法]]
  
 <​code>​ <​code>​
ライン 7: ライン 9:
 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をアンインストールする]]
 +
 +
 +
 +
react/エラー.1577694923.txt.gz · 最終更新: 2019/12/30 17:35 by ips