質問編集履歴
1
画面に出てるコード全部貼りました
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,19 +1,63 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
2
|
|
3
|
+
teratail初心者です^^よろしくお願いします。
|
3
4
|
Windowsの仮想環境でubuntuを使っています。
|
4
|
-
今回Reactのアプリを作りたくてnpx create-react-app
|
5
|
+
今回Reactのアプリを作りたくてnpx create-react-app chatbotnanoと実行すると以下のようにエラーメッセージが出てしまいます。
|
5
|
-
|
6
|
+
作られたchatbotnanoを開いてみるとyarn-error.logというフォルダーしかありません;
|
6
7
|
|
7
8
|
### 発生している問題・エラーメッセージ
|
8
9
|
|
9
10
|
```
|
10
|
-
|
11
|
+
tatsuki@LAPTOP-EHPO02FM:~/IdeaProjects$ npx create-react-app chatbotnano
|
12
|
+
^[[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
|
13
|
+
npm ERR! errno ECONNREFUSED
|
14
|
+
npm ERR! FetchError: request to https://registry.npmjs.org/create-react-app failed, reason: connect ECONNREFUSED 104.16.18.35:443
|
15
|
+
npm ERR! at ClientRequest.req.on.err (/usr/share/npm/node_modules/node-fetch-npm/src/index.js:68:14)
|
16
|
+
npm ERR! at ClientRequest.emit (events.js:198:13)
|
17
|
+
npm ERR! at TLSSocket.socketErrorListener (_http_client.js:401:9)
|
18
|
+
npm ERR! at TLSSocket.emit (events.js:198:13)
|
19
|
+
npm ERR! at emitErrorNT (internal/streams/destroy.js:91:8)
|
20
|
+
npm ERR! at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
|
21
|
+
npm ERR! at process._tickCallback (internal/process/next_tick.js:63:19)
|
22
|
+
npm ERR! { FetchError: request to https://registry.npmjs.org/create-react-app failed, reason: connect ECONNREFUSED 104.16.18.35:443
|
23
|
+
npm ERR! at ClientRequest.req.on.err (/usr/share/npm/node_modules/node-fetch-npm/src/index.js:68:14)
|
24
|
+
npm ERR! at ClientRequest.emit (events.js:198:13)
|
25
|
+
npm ERR! at TLSSocket.socketErrorListener (_http_client.js:401:9)
|
26
|
+
npm ERR! at TLSSocket.emit (events.js:198:13)
|
27
|
+
npm ERR! at emitErrorNT (internal/streams/destroy.js:91:8)
|
28
|
+
npm ERR! at emitErrorAndCloseNT (internal/streams/destroy.js:59:3)
|
29
|
+
npm ERR! at process._tickCallback (internal/process/next_tick.js:63:19)
|
30
|
+
npm ERR! message:
|
31
|
+
npm ERR! 'request to https://registry.npmjs.org/create-react-app failed, reason: connect ECONNREFUSED 104.16.18.35:443',
|
32
|
+
npm ERR! type: 'system',
|
33
|
+
npm ERR! errno: 'ECONNREFUSED',
|
34
|
+
npm ERR! code: 'ECONNREFUSED',
|
35
|
+
npm ERR! stack:
|
36
|
+
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)' }
|
37
|
+
npm ERR!
|
38
|
+
npm ERR! If you are behind a proxy, please make sure that the
|
39
|
+
npm ERR! 'proxy' config is set properly. See: 'npm help config'
|
40
|
+
|
41
|
+
npm ERR! A complete log of this run can be found in:
|
42
|
+
npm ERR! /home/tatsuki/.npm/_logs/2021-02-04T08_44_40_712Z-debug.log
|
43
|
+
|
44
|
+
Creating a new React app in /home/tatsuki/IdeaProjects/chatbotnano.
|
45
|
+
|
46
|
+
Installing packages. This might take a couple of minutes.
|
47
|
+
Installing react, react-dom, and react-scripts with cra-template...
|
48
|
+
|
11
49
|
yarn add v1.22.5
|
12
50
|
[1/4] Resolving packages...
|
13
51
|
error An unexpected error occurred: "https://registry.yarnpkg.com/react: connect ECONNREFUSED 104.16.24.35:443".
|
14
|
-
info If you think this is a bug, please open a bug report with the information provided in "/home/tatsuki/IdeaProjects/
|
52
|
+
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".
|
15
53
|
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
|
54
|
+
|
55
|
+
Aborting installation.
|
16
|
-
|
56
|
+
yarnpkg add --exact react react-dom react-scripts cra-template --cwd /home/tatsuki/IdeaProjects/chatbotnano has failed.
|
57
|
+
|
58
|
+
Deleting generated file... package.json
|
59
|
+
Deleting generated file... yarn.lock
|
60
|
+
Done.
|
17
61
|
```
|
18
62
|
|
19
63
|
### 該当のソースコード
|
@@ -24,7 +68,6 @@
|
|
24
68
|
|
25
69
|
### 試したこと
|
26
70
|
|
27
|
-
検索
|
71
|
+
検索してはいろいろなコードを試しました(-_-;)
|
28
|
-
どんなコードを打ったか覚えてません(-_-;)ごめんなさい
|
29
72
|
|
30
73
|
### 補足情報(FW/ツールのバージョンなど)
|