質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
以下がやったことです。
|
10
10
|
|
11
|
-
・fseventsが無いというエラーで```npm i fsevents```するとMACでないとインストールできないというエラー(centos7です。)
|
11
|
+
・fseventsが無いというエラーで```npm i fsevents```するとMACでないとインストールできないというエラー(centos7です。エラー内容を下に追記(追記2))
|
12
12
|
|
13
13
|
・サーバーを起動すると、/node_modules/chokidar/lib/fsevents-handler.jsの↓でエラーが出るのでコメントアウト。
|
14
14
|
|
@@ -74,7 +74,27 @@
|
|
74
74
|
|
75
75
|
./node_modules/readdirp/index.js
|
76
76
|
|
77
|
+
|
78
|
+
|
79
|
+
Module../src/index.js
|
80
|
+
|
81
|
+
src/index.js:6
|
82
|
+
|
83
|
+
3 | import './index.css';
|
84
|
+
|
85
|
+
4 | import App from './App';
|
86
|
+
|
87
|
+
5 | import * as serviceWorker from './serviceWorker';
|
88
|
+
|
89
|
+
> 6 | const chokidar = require('chokidar');
|
90
|
+
|
91
|
+
7 |
|
92
|
+
|
93
|
+
8 | // One-liner for current directory, ignores .dotfiles
|
94
|
+
|
77
|
-
ht
|
95
|
+
9 | chokidar.watch('.', {ignored: /(^|[/\])../}).on('all', (event, path) => {
|
96
|
+
|
97
|
+
View compiled
|
78
98
|
|
79
99
|
__webpack_require__
|
80
100
|
|
@@ -94,194 +114,6 @@
|
|
94
114
|
|
95
115
|
784 | module.l = true;
|
96
116
|
|
97
|
-
View compiled
|
98
|
-
|
99
|
-
fn
|
100
|
-
|
101
|
-
/home/vagrant/hw/webpack/bootstrap:149
|
102
|
-
|
103
|
-
146 | );
|
104
|
-
|
105
|
-
147 | hotCurrentParents = [];
|
106
|
-
|
107
|
-
148 | }
|
108
|
-
|
109
|
-
> 149 | return __webpack_require__(request);
|
110
|
-
|
111
|
-
| ^ 150 | };
|
112
|
-
|
113
|
-
151 | var ObjectFactory = function ObjectFactory(name) {
|
114
|
-
|
115
|
-
152 | return {
|
116
|
-
|
117
|
-
View compiled
|
118
|
-
|
119
|
-
2 stack frames were collapsed.
|
120
|
-
|
121
|
-
__webpack_require__
|
122
|
-
|
123
|
-
/home/vagrant/hw/webpack/bootstrap:781
|
124
|
-
|
125
|
-
778 | };
|
126
|
-
|
127
|
-
779 |
|
128
|
-
|
129
|
-
780 | // Execute the module function
|
130
|
-
|
131
|
-
> 781 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
|
132
|
-
|
133
|
-
| ^ 782 |
|
134
|
-
|
135
|
-
783 | // Flag the module as loaded
|
136
|
-
|
137
|
-
784 | module.l = true;
|
138
|
-
|
139
|
-
View compiled
|
140
|
-
|
141
|
-
fn
|
142
|
-
|
143
|
-
/home/vagrant/hw/webpack/bootstrap:149
|
144
|
-
|
145
|
-
146 | );
|
146
|
-
|
147
|
-
147 | hotCurrentParents = [];
|
148
|
-
|
149
|
-
148 | }
|
150
|
-
|
151
|
-
> 149 | return __webpack_require__(request);
|
152
|
-
|
153
|
-
| ^ 150 | };
|
154
|
-
|
155
|
-
151 | var ObjectFactory = function ObjectFactory(name) {
|
156
|
-
|
157
|
-
152 | return {
|
158
|
-
|
159
|
-
View compiled
|
160
|
-
|
161
|
-
Module../src/index.js
|
162
|
-
|
163
|
-
src/index.js:6
|
164
|
-
|
165
|
-
3 | import './index.css';
|
166
|
-
|
167
|
-
4 | import App from './App';
|
168
|
-
|
169
|
-
5 | import * as serviceWorker from './serviceWorker';
|
170
|
-
|
171
|
-
> 6 | const chokidar = require('chokidar');
|
172
|
-
|
173
|
-
7 |
|
174
|
-
|
175
|
-
8 | // One-liner for current directory, ignores .dotfiles
|
176
|
-
|
177
|
-
9 | chokidar.watch('.', {ignored: /(^|[/\])../}).on('all', (event, path) => {
|
178
|
-
|
179
|
-
View compiled
|
180
|
-
|
181
|
-
__webpack_require__
|
182
|
-
|
183
|
-
/home/vagrant/hw/webpack/bootstrap:781
|
184
|
-
|
185
|
-
778 | };
|
186
|
-
|
187
|
-
779 |
|
188
|
-
|
189
|
-
780 | // Execute the module function
|
190
|
-
|
191
|
-
> 781 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
|
192
|
-
|
193
|
-
| ^ 782 |
|
194
|
-
|
195
|
-
783 | // Flag the module as loaded
|
196
|
-
|
197
|
-
784 | module.l = true;
|
198
|
-
|
199
|
-
View compiled
|
200
|
-
|
201
|
-
fn
|
202
|
-
|
203
|
-
/home/vagrant/hw/webpack/bootstrap:149
|
204
|
-
|
205
|
-
146 | );
|
206
|
-
|
207
|
-
147 | hotCurrentParents = [];
|
208
|
-
|
209
|
-
148 | }
|
210
|
-
|
211
|
-
> 149 | return __webpack_require__(request);
|
212
|
-
|
213
|
-
| ^ 150 | };
|
214
|
-
|
215
|
-
151 | var ObjectFactory = function ObjectFactory(name) {
|
216
|
-
|
217
|
-
152 | return {
|
218
|
-
|
219
|
-
View compiled
|
220
|
-
|
221
|
-
0
|
222
|
-
|
223
|
-
http://192.168.1.100:2800/static/js/main.chunk.js:375:18
|
224
|
-
|
225
|
-
__webpack_require__
|
226
|
-
|
227
|
-
/home/vagrant/hw/webpack/bootstrap:781
|
228
|
-
|
229
|
-
778 | };
|
230
|
-
|
231
|
-
779 |
|
232
|
-
|
233
|
-
780 | // Execute the module function
|
234
|
-
|
235
|
-
> 781 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
|
236
|
-
|
237
|
-
| ^ 782 |
|
238
|
-
|
239
|
-
783 | // Flag the module as loaded
|
240
|
-
|
241
|
-
784 | module.l = true;
|
242
|
-
|
243
|
-
View compiled
|
244
|
-
|
245
|
-
checkDeferredModules
|
246
|
-
|
247
|
-
/home/vagrant/hw/webpack/bootstrap:45
|
248
|
-
|
249
|
-
42 | }
|
250
|
-
|
251
|
-
43 | if(fulfilled) {
|
252
|
-
|
253
|
-
44 | deferredModules.splice(i--, 1);
|
254
|
-
|
255
|
-
> 45 | result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
|
256
|
-
|
257
|
-
| ^ 46 | }
|
258
|
-
|
259
|
-
47 | }
|
260
|
-
|
261
|
-
48 | return result;
|
262
|
-
|
263
|
-
View compiled
|
264
|
-
|
265
|
-
Array.webpackJsonpCallback [as push]
|
266
|
-
|
267
|
-
/home/vagrant/hw/webpack/bootstrap:32
|
268
|
-
|
269
|
-
29 | deferredModules.push.apply(deferredModules, executeModules || []);
|
270
|
-
|
271
|
-
30 |
|
272
|
-
|
273
|
-
31 | // run deferred modules when all chunks ready
|
274
|
-
|
275
|
-
> 32 | return checkDeferredModules();
|
276
|
-
|
277
|
-
| ^ 33 | };
|
278
|
-
|
279
|
-
34 | function checkDeferredModules() {
|
280
|
-
|
281
|
-
35 | var result;
|
282
|
-
|
283
|
-
View compiled
|
284
|
-
|
285
117
|
```
|
286
118
|
|
287
119
|
|
@@ -291,3 +123,139 @@
|
|
291
123
|
https://qiita.com/cognitom/items/acc3ffcbca4c56cf2b95
|
292
124
|
|
293
125
|
よろしくお願いします。
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
追記1:
|
134
|
+
|
135
|
+
package.jsonに
|
136
|
+
|
137
|
+
```ここに言語を入力
|
138
|
+
|
139
|
+
"optionalDependencies": {
|
140
|
+
|
141
|
+
"fsevents": "*"
|
142
|
+
|
143
|
+
},
|
144
|
+
|
145
|
+
```
|
146
|
+
|
147
|
+
を書いたうえで```npm i fsevents npm i fsevents --save-optional ```しましたが同じエラーです。
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
追記2:fseventsインストール時にでるすべての出力
|
156
|
+
|
157
|
+
```
|
158
|
+
|
159
|
+
npm WARN @typescript-eslint/eslint-plugin@1.6.0 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
|
160
|
+
|
161
|
+
npm WARN @typescript-eslint/parser@1.6.0 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
|
162
|
+
|
163
|
+
npm WARN @typescript-eslint/typescript-estree@1.6.0 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
|
164
|
+
|
165
|
+
npm WARN ts-pnp@1.1.2 requires a peer of typescript@* but none is installed. You must install peer dependencies yourself.
|
166
|
+
|
167
|
+
npm WARN tsutils@3.10.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev but none is installed. You must install peer dependencies yourself.
|
168
|
+
|
169
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/webpack-dev-server/node_modules/fsevents):
|
170
|
+
|
171
|
+
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
|
172
|
+
|
173
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/watchpack/node_modules/fsevents):
|
174
|
+
|
175
|
+
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
|
176
|
+
|
177
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/jest-haste-map/node_modules/fsevents):
|
178
|
+
|
179
|
+
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
|
180
|
+
|
181
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fork-ts-checker-webpack-plugin/node_modules/fsevents):
|
182
|
+
|
183
|
+
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
|
184
|
+
|
185
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: safer-buffer@2.1.2 (node_modules/jest-haste-map/node_modules/fsevents/node_modules/safer-buffer):
|
186
|
+
|
187
|
+
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/safer-buffer/package.json.1467361262'
|
188
|
+
|
189
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: os-tmpdir@1.0.2 (node_modules/jest-haste-map/node_modules/fsevents/node_modules/os-tmpdir):
|
190
|
+
|
191
|
+
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/os-tmpdir/package.json.197817184'
|
192
|
+
|
193
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: os-homedir@1.0.2 (node_modules/jest-haste-map/node_modules/fsevents/node_modules/os-homedir):
|
194
|
+
|
195
|
+
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/os-homedir/package.json.4148039880'
|
196
|
+
|
197
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: object-assign@4.1.1 (node_modules/jest-haste-map/node_modules/fsevents/node_modules/object-assign):
|
198
|
+
|
199
|
+
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/object-assign/package.json.1255464156'
|
200
|
+
|
201
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: is-fullwidth-code-point@1.0.0 (node_modules/jest-haste-map/node_modules/fsevents/node_modules/is-fullwidth-code-point):
|
202
|
+
|
203
|
+
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/is-fullwidth-code-point/package.json.2969288910'
|
204
|
+
|
205
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: number-is-nan@1.0.1 (node_modules/jest-haste-map/node_modules/fsevents/node_modules/number-is-nan):
|
206
|
+
|
207
|
+
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/number-is-nan/package.json.3801920526'
|
208
|
+
|
209
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: npm-packlist@1.4.1 (node_modules/jest-haste-map/node_modules/fsevents/node_modules/npm-packlist):
|
210
|
+
|
211
|
+
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/npm-packlist/package.json.3182641406'
|
212
|
+
|
213
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: npm-bundled@1.0.6 (node_modules/jest-haste-map/node_modules/fsevents/node_modules/npm-bundled):
|
214
|
+
|
215
|
+
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/npm-bundled/package.json.1533151483'
|
216
|
+
|
217
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: safe-buffer@5.1.2 (node_modules/jest-haste-map/node_modules/fsevents/node_modules/safe-buffer):
|
218
|
+
|
219
|
+
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/safe-buffer/package.json.1918419299'
|
220
|
+
|
221
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ms@2.1.1 (node_modules/jest-haste-map/node_modules/fsevents/node_modules/ms):
|
222
|
+
|
223
|
+
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/ms/package.json.104996292'
|
224
|
+
|
225
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: tar@4.4.8 (node_modules/jest-haste-map/node_modules/fsevents/node_modules/tar):
|
226
|
+
|
227
|
+
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/tar/package.json.3514734864' -> '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/tar/package.json'
|
228
|
+
|
229
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: needle@2.3.0 (node_modules/jest-haste-map/node_modules/fsevents/node_modules/needle):
|
230
|
+
|
231
|
+
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/needle/package.json.2584452071' -> '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/needle/package.json'
|
232
|
+
|
233
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: mkdirp@0.5.1 (node_modules/jest-haste-map/node_modules/fsevents/node_modules/mkdirp):
|
234
|
+
|
235
|
+
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/mkdirp/package.json.3534329429' -> '/home/vagrant/hw/node_modules/jest-haste-map/node_modules/fsevents/node_modules/mkdirp/package.json'
|
236
|
+
|
237
|
+
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: tar@4.4.8 (node_modules/fork-ts-checker-webpack-plugin/node_modules/fsevents/node_modules/tar):
|
238
|
+
|
239
|
+
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, open '/home/vagrant/hw/node_modules/fork-ts-checker-webpack-plugin/node_modules/fsevents/node_modules/tar/package.json.582820445'
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
npm ERR! code EBADPLATFORM
|
244
|
+
|
245
|
+
npm ERR! notsup Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
|
246
|
+
|
247
|
+
npm ERR! notsup Valid OS: darwin
|
248
|
+
|
249
|
+
npm ERR! notsup Valid Arch: any
|
250
|
+
|
251
|
+
npm ERR! notsup Actual OS: linux
|
252
|
+
|
253
|
+
npm ERR! notsup Actual Arch: x64
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
npm ERR! A complete log of this run can be found in:
|
258
|
+
|
259
|
+
npm ERR! /root/.npm/_logs/2019-06-05T02_47_01_478Z-debug.log
|
260
|
+
|
261
|
+
```
|