質問編集履歴

3

文字修正

2020/04/08 12:38

投稿

kaoru_tujimiya
kaoru_tujimiya

スコア36

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

タイトル変更

2020/04/08 12:38

投稿

kaoru_tujimiya
kaoru_tujimiya

スコア36

test CHANGED
@@ -1 +1 @@
1
- React npm start でエラーが出る問題について
1
+ Reactのexpressが立ち上がらずエラーが出る問題について
test CHANGED
File without changes

1

文字修正

2020/04/08 11:12

投稿

kaoru_tujimiya
kaoru_tujimiya

スコア36

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 start <
7
+ > Executing task in folder aaa: npm run server <
8
8
 
9
9
 
10
10
 
11
11
 
12
12
 
13
- > cms@0.0.0 start C:\xampp\htdocs\aaa
13
+ > cms@0.0.0 server C:\xampp\htdocs\aaa
14
14
 
15
- > concurrently "npm run server" "npm run client" "npm run web"
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
- [1] > npm start --prefix ./react
21
+ > aaa@1.0.0 server C:\xampp\htdocs\aaa\express
24
22
 
25
- [1]
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
- [2] > php -S localhost:8100 -t web/public_html web/public_html/index.php
27
+ [nodemon] 1.19.4
32
28
 
33
- [2]
29
+ [nodemon] to restart at any time, enter `rs`
34
30
 
35
- [0]
31
+ [nodemon] watching dir(s): *.*
36
32
 
37
- [0] > cms@0.0.0 server C:\xampp\htdocs\aaa
33
+ [nodemon] watching extensions: js,gql
38
34
 
39
- [0] > npm run server --prefix ./express
35
+ [nodemon] starting `node ./bin/www`
40
36
 
41
- [0]
37
+ internal/modules/cjs/loader.js:584
42
38
 
43
- [0]
39
+ throw err;
44
40
 
45
- [0] > aaa@1.0.0 server C:\xampp\htdocs\aaa\express
41
+ ^
46
42
 
47
- [0] > cross-env NODE_ENV=development nodemon --config ./config/nodemon.json ./bin/www
48
43
 
49
- [0]
50
44
 
51
- [1]
45
+ Error: Cannot find module 'uniqid'
52
46
 
53
- [1] > cms-ui-demo@0.1.0 start C:\xampp\htdocs\aaa\react
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
- [0] at Function.Module._load (internal/modules/cjs/loader.js:508:25)
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
- [0] at require (internal/modules/cjs/helpers.js:22:18)
53
+ at require (internal/modules/cjs/helpers.js:22:18)
102
54
 
103
- [0] at Object.<anonymous> (C:\xampp\htdocs\aaa\express\graphql\resolvers\index.js:3:22)
55
+ at Object.<anonymous> (C:\xampp\htdocs\aaa\express\graphql\resolvers\mutation.js:3:16)
104
56
 
105
- [0] at Module._compile (internal/modules/cjs/loader.js:701:30)
57
+ at Module._compile (internal/modules/cjs/loader.js:701:30)
106
58
 
107
- [0] at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
59
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
108
60
 
109
- [0] at Module.load (internal/modules/cjs/loader.js:600:32)
61
+ at Module.load (internal/modules/cjs/loader.js:600:32)
110
62
 
111
- [0] at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
63
+ at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
112
64
 
113
- [0] at Function.Module._load (internal/modules/cjs/loader.js:531:3)
65
+ at Function.Module._load (internal/modules/cjs/loader.js:531:3)
114
66
 
115
- [0] at Module.require (internal/modules/cjs/loader.js:637:17)
67
+ at Module.require (internal/modules/cjs/loader.js:637:17)
116
68
 
117
- [0] at require (internal/modules/cjs/helpers.js:22:18)
69
+ at require (internal/modules/cjs/helpers.js:22:18)
118
70
 
119
- [0] at Object.<anonymous> (C:\xampp\htdocs\aaa\express\app.js:15:23)
71
+ at Object.<anonymous> (C:\xampp\htdocs\aaa\express\graphql\resolvers\index.js:3:22)
120
72
 
121
- [0] at Module._compile (internal/modules/cjs/loader.js:701:30)
73
+ at Module._compile (internal/modules/cjs/loader.js:701:30)
122
74
 
123
- [0] [nodemon] app crashed - waiting for file changes before starting...
75
+ at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
124
76
 
125
- [1] i 「wds」: Project is running at http://172.26.52.114/
77
+ at Module.load (internal/modules/cjs/loader.js:600:32)
126
78
 
127
- [1] i 「wds」: webpack output is served from
79
+ at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
128
80
 
129
- [1] i 「wds」: Content not from webpack is served from C:\xampp\htdocs\aaa`\react\public
81
+ at Function.Module._load (internal/modules/cjs/loader.js:531:3)
130
82
 
131
- [1] i 「wds」: 404s will fallback to /
83
+ at Module.require (internal/modules/cjs/loader.js:637:17)
132
84
 
133
- [1] Starting the development server...
85
+ at require (internal/modules/cjs/helpers.js:22:18)
134
86
 
135
- [1]
87
+ at Object.<anonymous> (C:\xampp\htdocs\aaa\express\app.js:15:23)
136
88
 
137
- [1] Compiled successfully!
89
+ at Module._compile (internal/modules/cjs/loader.js:701:30)
138
90
 
139
- [1]
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
  ```