前提・実現したいこと
teratail初心者です^^よろしくお願いします。
Windowsの仮想環境でubuntuを使っています。
今回Reactのアプリを作りたくてnpx create-react-app chatbotnanoと実行すると以下のようにエラーメッセージが出てしまいます。
作られたchatbotnanoを開いてみるとyarn-error.logというフォルダーしかありません;
発生している問題・エラーメッセージ
tatsuki@LAPTOP-EHPO02FM:~/IdeaProjects$ npx create-react-app chatbotnano ^[[A^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[D^[[Bnpm ERR! code ECONNREFUSED npm ERR! errno ECONNREFUSED npm ERR! FetchError: request to https://registry.npmjs.org/create-react-app failed, reason: connect ECONNREFUSED 104.16.18.35:443 npm ERR! at ClientRequest.req.on.err (/usr/share/npm/node_modules/node-fetch-npm/src/index.js:68:14) npm ERR! at ClientRequest.emit (events.js:198:13) npm ERR! at TLSSocket.socketErrorListener (_http_client.js:401:9) npm ERR! at TLSSocket.emit (events.js:198:13) npm ERR! at emitErrorNT (internal/streams/destroy.js:91:8) npm ERR! at emitErrorAndCloseNT (internal/streams/destroy.js:59:3) npm ERR! at process._tickCallback (internal/process/next_tick.js:63:19) npm ERR! { FetchError: request to https://registry.npmjs.org/create-react-app failed, reason: connect ECONNREFUSED 104.16.18.35:443 npm ERR! at ClientRequest.req.on.err (/usr/share/npm/node_modules/node-fetch-npm/src/index.js:68:14) npm ERR! at ClientRequest.emit (events.js:198:13) npm ERR! at TLSSocket.socketErrorListener (_http_client.js:401:9) npm ERR! at TLSSocket.emit (events.js:198:13) npm ERR! at emitErrorNT (internal/streams/destroy.js:91:8) npm ERR! at emitErrorAndCloseNT (internal/streams/destroy.js:59:3) npm ERR! at process._tickCallback (internal/process/next_tick.js:63:19) npm ERR! message: npm ERR! 'request to https://registry.npmjs.org/create-react-app failed, reason: connect ECONNREFUSED 104.16.18.35:443', npm ERR! type: 'system', npm ERR! errno: 'ECONNREFUSED', npm ERR! code: 'ECONNREFUSED', npm ERR! stack: npm ERR! 'FetchError: request to https://registry.npmjs.org/create-react-app failed, reason: connect ECONNREFUSED 104.16.18.35:443\n at ClientRequest.req.on.err (/usr/share/npm/node_modules/node-fetch-npm/src/index.js:68:14)\n at ClientRequest.emit (events.js:198:13)\n at TLSSocket.socketErrorListener (_http_client.js:401:9)\n at TLSSocket.emit (events.js:198:13)\n at emitErrorNT (internal/streams/destroy.js:91:8)\n at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)\n at process._tickCallback (internal/process/next_tick.js:63:19)' } npm ERR! npm ERR! If you are behind a proxy, please make sure that the npm ERR! 'proxy' config is set properly. See: 'npm help config' npm ERR! A complete log of this run can be found in: npm ERR! /home/tatsuki/.npm/_logs/2021-02-04T08_44_40_712Z-debug.log Creating a new React app in /home/tatsuki/IdeaProjects/chatbotnano. Installing packages. This might take a couple of minutes. Installing react, react-dom, and react-scripts with cra-template... yarn add v1.22.5 [1/4] Resolving packages... error An unexpected error occurred: "https://registry.yarnpkg.com/react: connect ECONNREFUSED 104.16.24.35:443". info If you think this is a bug, please open a bug report with the information provided in "/home/tatsuki/IdeaProjects/chatbotnano/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command. Aborting installation. yarnpkg add --exact react react-dom react-scripts cra-template --cwd /home/tatsuki/IdeaProjects/chatbotnano has failed. Deleting generated file... package.json Deleting generated file... yarn.lock Done.
該当のソースコード
React
試したこと
検索してはいろいろなコードを試しました(-_-;)
補足情報(FW/ツールのバージョンなど)
あなたの回答
tips
プレビュー