質問編集履歴
4
Terminalのアウトプットを追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -263,3 +263,47 @@
|
|
263
263
|
11 verbose exit [ 1, true ]
|
264
264
|
|
265
265
|
```
|
266
|
+
|
267
|
+
```Terminal
|
268
|
+
|
269
|
+
sutoumichimasa@sudoujishinnoMacBook-Pro ISARA % rm -rf node_modules
|
270
|
+
|
271
|
+
sutoumichimasa@sudoujishinnoMacBook-Pro ISARA % rm package-lock.json yarn.lock
|
272
|
+
|
273
|
+
rm: yarn.lock: No such file or directory
|
274
|
+
|
275
|
+
sutoumichimasa@sudoujishinnoMacBook-Pro ISARA % npm cache clear --force
|
276
|
+
|
277
|
+
npm WARN using --force I sure hope you know what you are doing.
|
278
|
+
|
279
|
+
sutoumichimasa@sudoujishinnoMacBook-Pro ISARA % npm install
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
sutoumichimasa@sudoujishinnoMacBook-Pro ISARA % npm install
|
284
|
+
|
285
|
+
npm notice created a lockfile as package-lock.json. You should commit this file.
|
286
|
+
|
287
|
+
npm WARN isara@1.0.0 No description
|
288
|
+
|
289
|
+
npm WARN isara@1.0.0 No repository field.
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
added 58 packages from 40 contributors and audited 58 packages in 3.288s
|
294
|
+
|
295
|
+
found 0 vulnerabilities
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
sutoumichimasa@sudoujishinnoMacBook-Pro ISARA % npm run dev
|
300
|
+
|
301
|
+
npm ERR! missing script: dev
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
npm ERR! A complete log of this run can be found in:
|
306
|
+
|
307
|
+
npm ERR! /Users/sutoumichimasa/.npm/_logs/2020-10-12T05_55_05_747Z-debug.log
|
308
|
+
|
309
|
+
```
|
3
Logfileの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -215,3 +215,51 @@
|
|
215
215
|
24 verbose exit [ 1, true ]
|
216
216
|
|
217
217
|
```
|
218
|
+
|
219
|
+
```Logfile2
|
220
|
+
|
221
|
+
0 info it worked if it ends with ok
|
222
|
+
|
223
|
+
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'dev' ]
|
224
|
+
|
225
|
+
2 info using npm@6.14.8
|
226
|
+
|
227
|
+
3 info using node@v12.19.0
|
228
|
+
|
229
|
+
4 verbose stack Error: missing script: dev
|
230
|
+
|
231
|
+
4 verbose stack at run (/usr/local/lib/node_modules/npm/lib/run-script.js:155:19)
|
232
|
+
|
233
|
+
4 verbose stack at /usr/local/lib/node_modules/npm/lib/run-script.js:63:5
|
234
|
+
|
235
|
+
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:116:5
|
236
|
+
|
237
|
+
4 verbose stack at /usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:436:5
|
238
|
+
|
239
|
+
4 verbose stack at checkBinReferences_ (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:391:45)
|
240
|
+
|
241
|
+
4 verbose stack at final (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:434:3)
|
242
|
+
|
243
|
+
4 verbose stack at then (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:161:5)
|
244
|
+
|
245
|
+
4 verbose stack at ReadFileContext.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/read-package-json/read-json.js:350:20)
|
246
|
+
|
247
|
+
4 verbose stack at ReadFileContext.callback (/usr/local/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:123:16)
|
248
|
+
|
249
|
+
4 verbose stack at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:261:13)
|
250
|
+
|
251
|
+
5 verbose cwd /Users/sutoumichimasa/Desktop/ISARA
|
252
|
+
|
253
|
+
6 verbose Darwin 19.6.0
|
254
|
+
|
255
|
+
7 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev"
|
256
|
+
|
257
|
+
8 verbose node v12.19.0
|
258
|
+
|
259
|
+
9 verbose npm v6.14.8
|
260
|
+
|
261
|
+
10 error missing script: dev
|
262
|
+
|
263
|
+
11 verbose exit [ 1, true ]
|
264
|
+
|
265
|
+
```
|
2
エラーとログファイルのの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -71,3 +71,147 @@
|
|
71
71
|
}
|
72
72
|
|
73
73
|
```
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
```errorafteraddstartinscript
|
78
|
+
|
79
|
+
sutoumichimasa@sudoujishinnoMacBook-Pro ISARA % npm start
|
80
|
+
|
81
|
+
> isara@1.0.0 start /Users/sutoumichimasa/Desktop/ISARA
|
82
|
+
|
83
|
+
> node app.js
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
internal/modules/cjs/loader.js:834
|
88
|
+
|
89
|
+
throw err;
|
90
|
+
|
91
|
+
^
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
Error: Cannot find module '/Users/sutoumichimasa/Desktop/ISARA/app.js'
|
96
|
+
|
97
|
+
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
|
98
|
+
|
99
|
+
at Function.Module._load (internal/modules/cjs/loader.js:687:27)
|
100
|
+
|
101
|
+
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
|
102
|
+
|
103
|
+
at internal/main/run_main_module.js:17:47 {
|
104
|
+
|
105
|
+
code: 'MODULE_NOT_FOUND',
|
106
|
+
|
107
|
+
requireStack: []
|
108
|
+
|
109
|
+
}
|
110
|
+
|
111
|
+
npm ERR! code ELIFECYCLE
|
112
|
+
|
113
|
+
npm ERR! errno 1
|
114
|
+
|
115
|
+
npm ERR! isara@1.0.0 start: `node app.js`
|
116
|
+
|
117
|
+
npm ERR! Exit status 1
|
118
|
+
|
119
|
+
npm ERR!
|
120
|
+
|
121
|
+
npm ERR! Failed at the isara@1.0.0 start script.
|
122
|
+
|
123
|
+
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
npm ERR! A complete log of this run can be found in:
|
128
|
+
|
129
|
+
npm ERR! /Users/sutoumichimasa/.npm/_logs/2020-10-12T03_49_34_150Z-debug.log
|
130
|
+
|
131
|
+
sutoumichimasa@sudoujishinnoMacBook-Pro ISARA % npm
|
132
|
+
|
133
|
+
sutoumichimasa@sudoujishinnoMacBook-Pro ISARA % npm run
|
134
|
+
|
135
|
+
Lifecycle scripts included in isara:
|
136
|
+
|
137
|
+
test
|
138
|
+
|
139
|
+
echo "Error: no test specified" && exit 1
|
140
|
+
|
141
|
+
start
|
142
|
+
|
143
|
+
node app.js
|
144
|
+
|
145
|
+
```
|
146
|
+
|
147
|
+
```Logfile
|
148
|
+
|
149
|
+
0 info it worked if it ends with ok
|
150
|
+
|
151
|
+
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
|
152
|
+
|
153
|
+
2 info using npm@6.14.8
|
154
|
+
|
155
|
+
3 info using node@v12.19.0
|
156
|
+
|
157
|
+
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
|
158
|
+
|
159
|
+
5 info lifecycle isara@1.0.0~prestart: isara@1.0.0
|
160
|
+
|
161
|
+
6 info lifecycle isara@1.0.0~start: isara@1.0.0
|
162
|
+
|
163
|
+
7 verbose lifecycle isara@1.0.0~start: unsafe-perm in lifecycle true
|
164
|
+
|
165
|
+
8 verbose lifecycle isara@1.0.0~start: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/sutoumichimasa/Desktop/ISARA/node_modules/.bin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
|
166
|
+
|
167
|
+
9 verbose lifecycle isara@1.0.0~start: CWD: /Users/sutoumichimasa/Desktop/ISARA
|
168
|
+
|
169
|
+
10 silly lifecycle isara@1.0.0~start: Args: [ '-c', 'node app.js' ]
|
170
|
+
|
171
|
+
11 silly lifecycle isara@1.0.0~start: Returned: code: 1 signal: null
|
172
|
+
|
173
|
+
12 info lifecycle isara@1.0.0~start: Failed to exec start script
|
174
|
+
|
175
|
+
13 verbose stack Error: isara@1.0.0 start: `node app.js`
|
176
|
+
|
177
|
+
13 verbose stack Exit status 1
|
178
|
+
|
179
|
+
13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
|
180
|
+
|
181
|
+
13 verbose stack at EventEmitter.emit (events.js:314:20)
|
182
|
+
|
183
|
+
13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
|
184
|
+
|
185
|
+
13 verbose stack at ChildProcess.emit (events.js:314:20)
|
186
|
+
|
187
|
+
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
|
188
|
+
|
189
|
+
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
|
190
|
+
|
191
|
+
14 verbose pkgid isara@1.0.0
|
192
|
+
|
193
|
+
15 verbose cwd /Users/sutoumichimasa/Desktop/ISARA
|
194
|
+
|
195
|
+
16 verbose Darwin 19.6.0
|
196
|
+
|
197
|
+
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
|
198
|
+
|
199
|
+
18 verbose node v12.19.0
|
200
|
+
|
201
|
+
19 verbose npm v6.14.8
|
202
|
+
|
203
|
+
20 error code ELIFECYCLE
|
204
|
+
|
205
|
+
21 error errno 1
|
206
|
+
|
207
|
+
22 error isara@1.0.0 start: `node app.js`
|
208
|
+
|
209
|
+
22 error Exit status 1
|
210
|
+
|
211
|
+
23 error Failed at the isara@1.0.0 start script.
|
212
|
+
|
213
|
+
23 error This is probably not a problem with npm. There is likely additional logging output above.
|
214
|
+
|
215
|
+
24 verbose exit [ 1, true ]
|
216
|
+
|
217
|
+
```
|
1
package.jsonのコードを貼りました
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,7 +16,9 @@
|
|
16
16
|
|
17
17
|
エラーメッセージ
|
18
18
|
|
19
|
+
```terminal
|
20
|
+
|
19
|
-
|
21
|
+
sutoumichimasa@sudoujishinnoMacBook-Pro ISARA % npm start
|
20
22
|
|
21
23
|
npm ERR! missing script: start
|
22
24
|
|
@@ -28,12 +30,44 @@
|
|
28
30
|
|
29
31
|
|
30
32
|
|
33
|
+
```
|
31
34
|
|
32
35
|
|
33
36
|
|
37
|
+
```Jason
|
34
38
|
|
39
|
+
{
|
35
40
|
|
41
|
+
"name": "isara",
|
36
42
|
|
43
|
+
"version": "1.0.0",
|
37
44
|
|
45
|
+
"main": "index.js",
|
46
|
+
|
47
|
+
"scripts": {
|
48
|
+
|
49
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
50
|
+
|
51
|
+
},
|
52
|
+
|
53
|
+
"author": "",
|
54
|
+
|
55
|
+
"license": "ISC",
|
56
|
+
|
57
|
+
"keywords": [],
|
58
|
+
|
59
|
+
"description": "",
|
60
|
+
|
61
|
+
"dependencies": {
|
62
|
+
|
63
|
+
"express": "^4.17.1",
|
64
|
+
|
65
|
+
"react": "^16.13.1",
|
66
|
+
|
67
|
+
"react-dom": "^16.13.1"
|
68
|
+
|
69
|
+
}
|
70
|
+
|
71
|
+
}
|
38
72
|
|
39
73
|
```
|