質問編集履歴
3
文字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
npmのエラーで、expressが立ち上がらないんですが原因が分かる方おられましたら
|
2
2
|
|
3
3
|
ご教授お願いします。。
|
4
|
+
|
5
|
+
|
6
|
+
|
7
|
+
npm -g install uniqid
|
8
|
+
|
9
|
+
を実行しても変更なし。。
|
10
|
+
|
11
|
+
|
4
12
|
|
5
13
|
```node
|
6
14
|
|
2
タイトル変更
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
React
|
1
|
+
Reactのexpressが立ち上がらずエラーが出る問題について
|
test
CHANGED
File without changes
|
1
文字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,169 +1,99 @@
|
|
1
|
-
npmのエラーで、立ち上
|
1
|
+
npmのエラーで、expressが立ち上がらないんですが原因が分かる方おられましたら
|
2
2
|
|
3
|
-
|
3
|
+
ご教授お願いします。。
|
4
4
|
|
5
5
|
```node
|
6
6
|
|
7
|
-
> Executing task in folder aaa: npm run s
|
7
|
+
> Executing task in folder aaa: npm run server <
|
8
8
|
|
9
9
|
|
10
10
|
|
11
11
|
|
12
12
|
|
13
|
-
> cms@0.0.0 s
|
13
|
+
> cms@0.0.0 server C:\xampp\htdocs\aaa
|
14
14
|
|
15
|
-
>
|
15
|
+
> npm run server --prefix ./express
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
[1]
|
20
19
|
|
21
|
-
[1] > cms@0.0.0 client C:\xampp\htdocs\aaa
|
22
20
|
|
23
|
-
|
21
|
+
> aaa@1.0.0 server C:\xampp\htdocs\aaa\express
|
24
22
|
|
25
|
-
|
23
|
+
> cross-env NODE_ENV=development nodemon --config ./config/nodemon.json ./bin/www
|
26
24
|
|
27
|
-
[2]
|
28
25
|
|
29
|
-
[2] > cms@0.0.0 web C:\xampp\htdocs\aaa
|
30
26
|
|
31
|
-
[
|
27
|
+
[nodemon] 1.19.4
|
32
28
|
|
33
|
-
[
|
29
|
+
[nodemon] to restart at any time, enter `rs`
|
34
30
|
|
35
|
-
[
|
31
|
+
[nodemon] watching dir(s): *.*
|
36
32
|
|
37
|
-
[
|
33
|
+
[nodemon] watching extensions: js,gql
|
38
34
|
|
39
|
-
[
|
35
|
+
[nodemon] starting `node ./bin/www`
|
40
36
|
|
41
|
-
|
37
|
+
internal/modules/cjs/loader.js:584
|
42
38
|
|
43
|
-
|
39
|
+
throw err;
|
44
40
|
|
45
|
-
|
41
|
+
^
|
46
42
|
|
47
|
-
[0] > cross-env NODE_ENV=development nodemon --config ./config/nodemon.json ./bin/www
|
48
43
|
|
49
|
-
[0]
|
50
44
|
|
51
|
-
|
45
|
+
Error: Cannot find module 'uniqid'
|
52
46
|
|
53
|
-
|
47
|
+
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
|
54
48
|
|
55
|
-
[1] > react-app-rewired start
|
56
|
-
|
57
|
-
[1]
|
58
|
-
|
59
|
-
[0] [nodemon] 1.19.4
|
60
|
-
|
61
|
-
[0] [nodemon] to restart at any time, enter `rs`
|
62
|
-
|
63
|
-
[0] [nodemon] watching dir(s): *.*
|
64
|
-
|
65
|
-
[0] [nodemon] watching extensions: js,gql
|
66
|
-
|
67
|
-
[0] [nodemon] starting `node ./bin/www`
|
68
|
-
|
69
|
-
[0] internal/modules/cjs/loader.js:584
|
70
|
-
|
71
|
-
[0] throw err;
|
72
|
-
|
73
|
-
[0] ^
|
74
|
-
|
75
|
-
[0]
|
76
|
-
|
77
|
-
[0] Error: Cannot find module 'uniqid'
|
78
|
-
|
79
|
-
[0] at Function.Module._resolveFilename (internal/modules/cjs/loader.js:582:15)
|
80
|
-
|
81
|
-
|
49
|
+
at Function.Module._load (internal/modules/cjs/loader.js:508:25)
|
82
|
-
|
83
|
-
[0] at Module.require (internal/modules/cjs/loader.js:637:17)
|
84
|
-
|
85
|
-
[0] at require (internal/modules/cjs/helpers.js:22:18)
|
86
|
-
|
87
|
-
[0] at Object.<anonymous> (C:\xampp\htdocs\aaa\express\graphql\resolvers\mutation.js:3:16)
|
88
|
-
|
89
|
-
[0] at Module._compile (internal/modules/cjs/loader.js:701:30)
|
90
|
-
|
91
|
-
[0] at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
|
92
|
-
|
93
|
-
[0] at Module.load (internal/modules/cjs/loader.js:600:32)
|
94
|
-
|
95
|
-
[0] at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
|
96
|
-
|
97
|
-
[0] at Function.Module._load (internal/modules/cjs/loader.js:531:3)
|
98
50
|
|
99
51
|
at Module.require (internal/modules/cjs/loader.js:637:17)
|
100
52
|
|
101
|
-
|
53
|
+
at require (internal/modules/cjs/helpers.js:22:18)
|
102
54
|
|
103
|
-
|
55
|
+
at Object.<anonymous> (C:\xampp\htdocs\aaa\express\graphql\resolvers\mutation.js:3:16)
|
104
56
|
|
105
|
-
|
57
|
+
at Module._compile (internal/modules/cjs/loader.js:701:30)
|
106
58
|
|
107
|
-
|
59
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
|
108
60
|
|
109
|
-
|
61
|
+
at Module.load (internal/modules/cjs/loader.js:600:32)
|
110
62
|
|
111
|
-
|
63
|
+
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
|
112
64
|
|
113
|
-
|
65
|
+
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
|
114
66
|
|
115
|
-
|
67
|
+
at Module.require (internal/modules/cjs/loader.js:637:17)
|
116
68
|
|
117
|
-
|
69
|
+
at require (internal/modules/cjs/helpers.js:22:18)
|
118
70
|
|
119
|
-
|
71
|
+
at Object.<anonymous> (C:\xampp\htdocs\aaa\express\graphql\resolvers\index.js:3:22)
|
120
72
|
|
121
|
-
|
73
|
+
at Module._compile (internal/modules/cjs/loader.js:701:30)
|
122
74
|
|
123
|
-
|
75
|
+
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
|
124
76
|
|
125
|
-
|
77
|
+
at Module.load (internal/modules/cjs/loader.js:600:32)
|
126
78
|
|
127
|
-
|
79
|
+
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
|
128
80
|
|
129
|
-
|
81
|
+
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
|
130
82
|
|
131
|
-
|
83
|
+
at Module.require (internal/modules/cjs/loader.js:637:17)
|
132
84
|
|
133
|
-
|
85
|
+
at require (internal/modules/cjs/helpers.js:22:18)
|
134
86
|
|
135
|
-
|
87
|
+
at Object.<anonymous> (C:\xampp\htdocs\aaa\express\app.js:15:23)
|
136
88
|
|
137
|
-
|
89
|
+
at Module._compile (internal/modules/cjs/loader.js:701:30)
|
138
90
|
|
139
|
-
[
|
91
|
+
[nodemon] app crashed - waiting for file changes before starting...
|
140
92
|
|
141
|
-
[1] You can now view aaa-ui-demo in the browser.
|
142
93
|
|
143
|
-
[1]
|
144
94
|
|
145
|
-
[1] Local: http://localhost:3000
|
146
95
|
|
147
|
-
[1] On Your Network: http://000.00.00.000:3000
|
148
96
|
|
149
|
-
[1]
|
150
97
|
|
151
|
-
[1] Note that the development build is not optimized.
|
152
|
-
|
153
|
-
[1] To create a production build, use npm run build.
|
154
|
-
|
155
|
-
[1]
|
156
|
-
|
157
|
-
[1] Proxy error: Could not proxy request /validation from localhost:3000 to http://localhost:3001/.
|
158
|
-
|
159
|
-
[1] See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
|
160
|
-
|
161
|
-
[1]
|
162
|
-
|
163
|
-
[1] Proxy error: Could not proxy request /validation from localhost:3000 to http://localhost:3001/.
|
164
|
-
|
165
|
-
[1] See https://nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNREFUSED).
|
166
|
-
|
167
|
-
[1]
|
168
98
|
|
169
99
|
```
|