質問編集履歴

2

追記

2018/09/18 06:24

投稿

hilhilyzyan
hilhilyzyan

スコア19

test CHANGED
File without changes
test CHANGED
@@ -133,3 +133,169 @@
133
133
 
134
134
 
135
135
  ```
136
+
137
+
138
+
139
+ # 追記
140
+
141
+
142
+
143
+ npm-debug.logはこちらです
144
+
145
+
146
+
147
+ ```npm-debug.log
148
+
149
+ 0 info it worked if it ends with ok
150
+
151
+ 1 verbose cli [ '/usr/bin/node',
152
+
153
+ 1 verbose cli '/usr/bin/npm',
154
+
155
+ 1 verbose cli 'install',
156
+
157
+ 1 verbose cli '--save-dev',
158
+
159
+ 1 verbose cli 'core-util-is-2@1.0.2' ]
160
+
161
+ 2 info using npm@3.5.2
162
+
163
+ 3 info using node@v8.10.0
164
+
165
+ 4 silly loadCurrentTree Starting
166
+
167
+ 5 silly install loadCurrentTree
168
+
169
+ 6 silly install readLocalPackageData
170
+
171
+ 7 silly fetchPackageMetaData core-util-is-2@1.0.2
172
+
173
+ 8 silly fetchNamedPackageData core-util-is-2
174
+
175
+ 9 silly mapToRegistry name core-util-is-2
176
+
177
+ 10 silly mapToRegistry using default registry
178
+
179
+ 11 silly mapToRegistry registry https://registry.npmjs.org/
180
+
181
+ 12 silly mapToRegistry uri https://registry.npmjs.org/core-util-is-2
182
+
183
+ 13 verbose request uri https://registry.npmjs.org/core-util-is-2
184
+
185
+ 14 verbose request no auth needed
186
+
187
+ 15 info attempt registry request try #1 at 3:20:50 PM
188
+
189
+ 16 verbose request id 6a482993485af4ef
190
+
191
+ 17 verbose etag W/"d266018adad69ba77fbe4e89d433ddff"
192
+
193
+ 18 verbose lastModified Thu, 06 Sep 2018 22:44:31 GMT
194
+
195
+ 19 http request GET https://registry.npmjs.org/core-util-is-2
196
+
197
+ 20 http 304 https://registry.npmjs.org/core-util-is-2
198
+
199
+ 21 verbose headers { date: 'Tue, 18 Sep 2018 06:20:50 GMT',
200
+
201
+ 21 verbose headers connection: 'keep-alive',
202
+
203
+ 21 verbose headers 'set-cookie':
204
+
205
+ 21 verbose headers [ '__cfduid=d33af201b390ee0e3d79e8fe9bf1041d61537251650; expires=Wed, 18-Sep-19 06:20:50 GMT; path=/; domain=.registry.npmjs.org; HttpOnly' ],
206
+
207
+ 21 verbose headers 'cf-cache-status': 'HIT',
208
+
209
+ 21 verbose headers 'cache-control': 'max-age=300',
210
+
211
+ 21 verbose headers 'cf-ray': '45c1b57f1f6dae6f-KIX',
212
+
213
+ 21 verbose headers etag: '"d266018adad69ba77fbe4e89d433ddff"',
214
+
215
+ 21 verbose headers 'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
216
+
217
+ 21 verbose headers 'last-modified': 'Thu, 06 Sep 2018 22:44:31 GMT',
218
+
219
+ 21 verbose headers vary: 'accept-encoding, accept',
220
+
221
+ 21 verbose headers 'x-amz-meta-rev': '2-a45223ac9034c7b9be55fe99669947bf',
222
+
223
+ 21 verbose headers server: 'cloudflare' }
224
+
225
+ 22 silly get cb [ 304,
226
+
227
+ 22 silly get { date: 'Tue, 18 Sep 2018 06:20:50 GMT',
228
+
229
+ 22 silly get connection: 'keep-alive',
230
+
231
+ 22 silly get 'set-cookie':
232
+
233
+ 22 silly get [ '__cfduid=d33af201b390ee0e3d79e8fe9bf1041d61537251650; expires=Wed, 18-Sep-19 06:20:50 GMT; path=/; domain=.registry.npmjs.org; HttpOnly' ],
234
+
235
+ 22 silly get 'cf-cache-status': 'HIT',
236
+
237
+ 22 silly get 'cache-control': 'max-age=300',
238
+
239
+ 22 silly get 'cf-ray': '45c1b57f1f6dae6f-KIX',
240
+
241
+ 22 silly get etag: '"d266018adad69ba77fbe4e89d433ddff"',
242
+
243
+ 22 silly get 'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
244
+
245
+ 22 silly get 'last-modified': 'Thu, 06 Sep 2018 22:44:31 GMT',
246
+
247
+ 22 silly get vary: 'accept-encoding, accept',
248
+
249
+ 22 silly get 'x-amz-meta-rev': '2-a45223ac9034c7b9be55fe99669947bf',
250
+
251
+ 22 silly get server: 'cloudflare' } ]
252
+
253
+ 23 verbose etag https://registry.npmjs.org/core-util-is-2 from cache
254
+
255
+ 24 verbose get saving core-util-is-2 to /home/****/.npm/registry.npmjs.org/core-util-is-2/.cache.json
256
+
257
+ 25 verbose stack TypeError: Cannot convert undefined or null to object
258
+
259
+ 25 verbose stack at Function.keys (<anonymous>)
260
+
261
+ 25 verbose stack at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:121:29)
262
+
263
+ 25 verbose stack at /usr/share/npm/node_modules/iferr/index.js:13:50
264
+
265
+ 25 verbose stack at /usr/share/npm/lib/utils/pulse-till-done.js:19:8
266
+
267
+ 25 verbose stack at saved (/usr/share/npm/lib/cache/caching-client.js:168:7)
268
+
269
+ 25 verbose stack at /usr/share/npm/node_modules/graceful-fs/polyfills.js:210:7
270
+
271
+ 25 verbose stack at FSReqWrap.oncomplete (fs.js:135:15)
272
+
273
+ 26 verbose cwd /home/****/project
274
+
275
+ 27 error Linux 4.15.0-34-generic
276
+
277
+ 28 error argv "/usr/bin/node" "/usr/bin/npm" "install" "--save-dev" "core-util-is-2@1.0.2"
278
+
279
+ 29 error node v8.10.0
280
+
281
+ 30 error npm v3.5.2
282
+
283
+ 31 error Cannot convert undefined or null to object
284
+
285
+ 32 error If you need help, you may report this error at:
286
+
287
+ 32 error <https://github.com/npm/npm/issues>
288
+
289
+ 33 verbose exit [ 1, true ]
290
+
291
+ ```
292
+
293
+
294
+
295
+ この質問を載せた後に、core-util-is-2@1.0.2だけをpackage.jsonから消してインストールしたら、成功しました!
296
+
297
+ しかし、core-util-is-2@1.0.2がなぜインストールできないのかが分かりません。。。
298
+
299
+ パッケージが見つからないということでしょうか?
300
+
301
+ パッケージが

1

コピペみす

2018/09/18 06:24

投稿

hilhilyzyan
hilhilyzyan

スコア19

test CHANGED
File without changes
test CHANGED
@@ -122,7 +122,9 @@
122
122
 
123
123
  "scripts": {
124
124
 
125
- "test": ""
125
+ "test": ""
126
+
127
+ },
126
128
 
127
129
  "version": "1.0.0"
128
130