質問編集履歴

3

タイトル変更

2021/02/04 09:02

投稿

nyc333
nyc333

スコア6

test CHANGED
@@ -1 +1 @@
1
- ackagenpm run devのエラーを解決したいです。
1
+ npm run devのエラーを解決したいです。
test CHANGED
File without changes

2

package.jsonの中身追記

2021/02/04 09:02

投稿

nyc333
nyc333

スコア6

test CHANGED
@@ -1 +1 @@
1
- npm run devのエラーを解決したいです。
1
+ ackagenpm run devのエラーを解決したいです。
test CHANGED
@@ -162,6 +162,114 @@
162
162
 
163
163
 
164
164
 
165
+ ### package.jsonの中身
166
+
167
+ ```
168
+
169
+ {
170
+
171
+ "name": "functions",
172
+
173
+ "scripts": {
174
+
175
+ "dev": "cross-env DOTENV_CONFIG_PATH=./.env.development firebase emulators:start --only hosting,functions,firestore,pubsub --inspect-functions",
176
+
177
+ "lint": "eslint --ext .ts \"src/**/*\"",
178
+
179
+ "build": "cross-env DOTENV_CONFIG_PATH=./.env.production tsc",
180
+
181
+ "build:watch": "cross-env DOTENV_CONFIG_PATH=./.env.development tsc -w",
182
+
183
+ "serve": "npm run build && firebase emulators:start --only functions",
184
+
185
+ "shell": "npm run build && firebase functions:shell",
186
+
187
+ "start": "npm run shell",
188
+
189
+ "deploy": "cross-env DOTENV_CONFIG_PATH=./.env.production firebase deploy",
190
+
191
+ "logs": "firebase functions:log"
192
+
193
+ },
194
+
195
+ "engines": {
196
+
197
+ "node": "12"
198
+
199
+ },
200
+
201
+ "main": "lib/index.js",
202
+
203
+ "dependencies": {
204
+
205
+ "body-parser": "^1.19.0",
206
+
207
+ "core-js": "^3.8.3",
208
+
209
+ "cors": "^2.8.5",
210
+
211
+ "dotenv": "^8.2.0",
212
+
213
+ "express": "^4.17.1",
214
+
215
+ "firebase-admin": "^9.4.2",
216
+
217
+ "firebase-functions": "^3.13.1",
218
+
219
+ "moment": "^2.29.1",
220
+
221
+ "stripe": "^8.132.0"
222
+
223
+ },
224
+
225
+ "devDependencies": {
226
+
227
+ "@types/body-parser": "^1.19.0",
228
+
229
+ "@types/cors": "^2.8.9",
230
+
231
+ "@types/dotenv": "^8.2.0",
232
+
233
+ "@types/express": "^4.17.11",
234
+
235
+ "@types/moment": "^2.13.0",
236
+
237
+ "@types/node": "^14.14.22",
238
+
239
+ "@types/stripe": "^8.0.416",
240
+
241
+ "@typescript-eslint/eslint-plugin": "^4.14.1",
242
+
243
+ "@typescript-eslint/parser": "^4.14.1",
244
+
245
+ "cross-env": "^7.0.3",
246
+
247
+ "eslint": "^7.19.0",
248
+
249
+ "eslint-config-airbnb-base": "^14.2.1",
250
+
251
+ "eslint-plugin-import": "^2.22.1",
252
+
253
+ "firebase-functions-test": "^0.2.3",
254
+
255
+ "laravel-mix": "^6.0.11",
256
+
257
+ "prettier": "^2.2.1",
258
+
259
+ "tsc-watch": "^4.2.9",
260
+
261
+ "typescript": "^4.1.3"
262
+
263
+ },
264
+
265
+ "private": true
266
+
267
+ }
268
+
269
+
270
+
271
+ ```
272
+
165
273
 
166
274
 
167
275
  ### ここに言語名を入力

1

/Users/******/.npm/_logs/2021-02-03T07_42_34_328Z-debug.log の中身のソースを記載

2021/02/04 08:15

投稿

nyc333
nyc333

スコア6

test CHANGED
File without changes
test CHANGED
@@ -62,17 +62,113 @@
62
62
 
63
63
  npm ERR! /Users/******/.npm/_logs/2021-02-03T07_42_34_328Z-debug.log
64
64
 
65
+ ```
65
66
 
67
+ ### /Users/******/.npm/_logs/2021-02-03T07_42_34_328Z-debug.log ファイルの中身です
66
68
 
67
- ### 該当のソースコード
69
+ ```
70
+
71
+ 0 info it worked if it ends with ok
72
+
73
+ 1 verbose cli [
74
+
75
+ 1 verbose cli '/Users/tomoki/.nvm/versions/node/v12.0.0/bin/node',
76
+
77
+ 1 verbose cli '/Users/tomoki/.nvm/versions/node/v12.0.0/bin/npm',
78
+
79
+ 1 verbose cli 'run',
80
+
81
+ 1 verbose cli 'dev'
82
+
83
+ 1 verbose cli ]
84
+
85
+ 2 info using npm@6.9.0
86
+
87
+ 3 info using node@v12.0.0
88
+
89
+ 4 verbose run-script [ 'predev', 'dev', 'postdev' ]
90
+
91
+ 5 info lifecycle functions@~predev: functions@
92
+
93
+ 6 info lifecycle functions@~dev: functions@
94
+
95
+ 7 verbose lifecycle functions@~dev: unsafe-perm in lifecycle true
96
+
97
+ 8 verbose lifecycle functions@~dev: PATH: /Users/tomoki/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/tomoki/limitedtime/functions/node_modules/.bin:/Users/tomoki/.npm-global/bin:/Users/tomoki/.nvm/versions/node/v12.0.0/bin:/Users/tomoki/.nodebrew/current/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
98
+
99
+ 9 verbose lifecycle functions@~dev: CWD: /Users/tomoki/limitedtime/functions
100
+
101
+ 10 silly lifecycle functions@~dev: Args: [
102
+
103
+ 10 silly lifecycle '-c',
104
+
105
+ 10 silly lifecycle 'cross-env DOTENV_CONFIG_PATH=./.env.development firebase ' +
106
+
107
+ 10 silly lifecycle 'emulators:start --only hosting,functions,firestore,pubsub ' +
108
+
109
+ 10 silly lifecycle '--inspect-functions'
110
+
111
+ 10 silly lifecycle ]
112
+
113
+ 11 silly lifecycle functions@~dev: Returned: code: 1 signal: null
114
+
115
+ 12 info lifecycle functions@~dev: Failed to exec dev script
116
+
117
+ 13 verbose stack Error: functions@ dev: `cross-env DOTENV_CONFIG_PATH=./.env.development firebase emulators:start --only hosting,functions,firestore,pubsub --inspect-functions`
118
+
119
+ 13 verbose stack Exit status 1
120
+
121
+ 13 verbose stack at EventEmitter.<anonymous> (/Users/tomoki/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
122
+
123
+ 13 verbose stack at EventEmitter.emit (events.js:196:13)
124
+
125
+ 13 verbose stack at ChildProcess.<anonymous> (/Users/tomoki/.nvm/versions/node/v12.0.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
126
+
127
+ 13 verbose stack at ChildProcess.emit (events.js:196:13)
128
+
129
+ 13 verbose stack at maybeClose (internal/child_process.js:1000:16)
130
+
131
+ 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:267:5)
132
+
133
+ 14 verbose pkgid functions@
134
+
135
+ 15 verbose cwd /Users/tomoki/limitedtime/functions
136
+
137
+ 16 verbose Darwin 20.2.0
138
+
139
+ 17 verbose argv "/Users/tomoki/.nvm/versions/node/v12.0.0/bin/node" "/Users/tomoki/.nvm/versions/node/v12.0.0/bin/npm" "run" "dev"
140
+
141
+ 18 verbose node v12.0.0
142
+
143
+ 19 verbose npm v6.9.0
144
+
145
+ 20 error code ELIFECYCLE
146
+
147
+ 21 error errno 1
148
+
149
+ 22 error functions@ dev: `cross-env DOTENV_CONFIG_PATH=./.env.development firebase emulators:start --only hosting,functions,firestore,pubsub --inspect-functions`
150
+
151
+ 22 error Exit status 1
152
+
153
+ 23 error Failed at the functions@ dev script.
154
+
155
+ 23 error This is probably not a problem with npm. There is likely additional logging output above.
156
+
157
+ 24 verbose exit [ 1, true ]
158
+
159
+ ```
68
160
 
69
161
 
70
162
 
163
+
164
+
165
+
166
+
71
- ```ここに言語名を入力
167
+ ### ここに言語名を入力
72
168
 
73
169
  node.js
74
170
 
75
- ```
171
+
76
172
 
77
173
 
78
174