前提
はじめてreactを使ってみようと思い、VSCode のターミナルから下記コマンドを実行
node: v18.12.1
npm: 8.19.2
npx create-react-app my-app
発生している問題・エラーメッセージ
npm ERR! code ETIMEDOUT npm ERR! syscall connect npm ERR! errno ETIMEDOUT npm ERR! network request to http://registry.npmjs.org/create-react-app failed, reason: connect ETIMEDOUT proxy.company.com:8080 npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\User名\AppData\Local\npm-cache\_logs\2022-11-14T08_05_46_278Z-debug-0.log
試したこと
いろんなサイトを見たところ、configの変数を設定してあげると解決したものがあるらしく試してみたが、エラーは全く変わらず…
nodeのバージョンを変更してみたりしたが特に変化なし、
npm -g config set proxy http://proxy.company.com:8080 npm -g config set https-proxy http://proxy.company.com:8080 npm -g config set registry http://registry.npmjs.org/
上記の値をセットしたもの、デフォルトのnullの状態でも全く変わらず手詰まりの状況です。
あなたの回答
tips
プレビュー