@@ -46,7 +46,6 @@ function errorMessage (er) {
46
46
[
47
47
'' ,
48
48
'Failed using git.' ,
49
- 'This is most likely not a problem with npm itself.' ,
50
49
'Please check if you have git installed and in your PATH.'
51
50
] . join ( '\n' )
52
51
] )
@@ -178,8 +177,7 @@ function errorMessage (er) {
178
177
detail . push ( [
179
178
'network' ,
180
179
[
181
- 'This is most likely not a problem with npm itself' ,
182
- 'and is related to network connectivity.' ,
180
+ 'This is a problem related to network connectivity.' ,
183
181
'In most cases you are behind a proxy or have bad network settings.' ,
184
182
'\nIf you are behind a proxy, please make sure that the' ,
185
183
"'proxy' config is set properly. See: 'npm help config'"
@@ -192,7 +190,6 @@ function errorMessage (er) {
192
190
detail . push ( [
193
191
'package.json' ,
194
192
[
195
- 'This is most likely not a problem with npm itself.' ,
196
193
"npm can't find a package.json file in your current directory."
197
194
] . join ( '\n' )
198
195
] )
@@ -201,7 +198,6 @@ function errorMessage (er) {
201
198
case 'ETARGET' :
202
199
short . push ( [ 'notarget' , er . message ] )
203
200
msg = [
204
- 'This is most likely not a problem with npm itself.' ,
205
201
'In most cases you or one of your dependencies are requesting' ,
206
202
"a package version that doesn't exist."
207
203
]
@@ -235,8 +231,8 @@ function errorMessage (er) {
235
231
detail . push ( [
236
232
'nospc' ,
237
233
[
238
- 'This is most likely not a problem with npm itself ' ,
239
- 'and is related to insufficient space on your system .'
234
+ 'There appears to be insufficient space on your system to finish. ' ,
235
+ 'Clear up some disk space and try again .'
240
236
] . join ( '\n' )
241
237
] )
242
238
break
@@ -246,9 +242,7 @@ function errorMessage (er) {
246
242
detail . push ( [
247
243
'rofs' ,
248
244
[
249
- 'This is most likely not a problem with npm itself' ,
250
- 'and is related to the file system being read-only.' ,
251
- '\nOften virtualized file systems, or other file systems' ,
245
+ 'Often virtualized file systems, or other file systems' ,
252
246
"that don't support symlinks, give this error."
253
247
] . join ( '\n' )
254
248
] )
@@ -259,8 +253,7 @@ function errorMessage (er) {
259
253
detail . push ( [
260
254
'enoent' ,
261
255
[
262
- 'This is most likely not a problem with npm itself' ,
263
- 'and is related to npm not being able to find a file.' ,
256
+ 'This is related to npm not being able to find a file.' ,
264
257
er . file ? "\nCheck if the file '" + er . file + "' is present." : ''
265
258
] . join ( '\n' )
266
259
] )
@@ -280,18 +273,6 @@ function errorMessage (er) {
280
273
] )
281
274
break
282
275
283
- case 'EISDIR' :
284
- short . push ( [ 'eisdir' , er . message ] )
285
- detail . push ( [
286
- 'eisdir' ,
287
- [
288
- 'This is most likely not a problem with npm itself' ,
289
- 'and is related to npm not being able to find a package.json in' ,
290
- 'a package you are trying to install.'
291
- ] . join ( '\n' )
292
- ] )
293
- break
294
-
295
276
default :
296
277
short . push ( [ '' , er . message || er ] )
297
278
break
0 commit comments