Bonjour,

Quand j'installe un nouveau module (via npm), je reçois toujours les messages d'erreur suivants:
pourtant, j'ai l'impression qu'il installe "correctement" mon module !

Pouvez-vous m'aider pour résoudre ce problème ?

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
C:\DEV\SourceNodeApp\web\Express\ex1
λ npm install express
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "prefix" "-g"
npm ERR! node v5.6.0
npm ERR! npm  v3.6.0
npm ERR! code MODULE_NOT_FOUND
 
npm ERR! Cannot find module 'npm-autoinit/autoinit'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "prefix" "-g"
npm ERR! node v5.6.0
npm ERR! npm  v3.6.0
 
npm ERR! Callback called more than once.
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
 
npm ERR! Please include the following file with any support request:
npm ERR!     C:\DEV\SourceNodeApp\web\Express\ex1\npm-debug.log
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express"
npm ERR! node v5.6.0
npm ERR! npm  v3.6.0
npm ERR! code MODULE_NOT_FOUND
 
npm ERR! Cannot find module 'npm-autoinit/autoinit'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
C:\DEV\SourceNodeApp\web\Express\ex1
`-- express@4.13.4
  +-- accepts@1.2.13
  | +-- mime-types@2.1.9
  | | `-- mime-db@1.21.0
  | `-- negotiator@0.5.3
  +-- array-flatten@1.1.1
  +-- content-disposition@0.5.1
  +-- content-type@1.0.1
  +-- cookie@0.1.5
  +-- cookie-signature@1.0.6
  +-- debug@2.2.0
  | `-- ms@0.7.1
  +-- depd@1.1.0
  +-- escape-html@1.0.3
  +-- etag@1.7.0
  +-- finalhandler@0.4.1
  | `-- unpipe@1.0.0
  +-- fresh@0.3.0
  +-- merge-descriptors@1.0.1
  +-- methods@1.1.2
  +-- on-finished@2.3.0
  | `-- ee-first@1.1.1
  +-- parseurl@1.3.1
  +-- path-to-regexp@0.1.7
  +-- proxy-addr@1.0.10
  | +-- forwarded@0.1.0
  | `-- ipaddr.js@1.0.5
  +-- qs@4.0.0
  +-- range-parser@1.0.3
  +-- send@0.13.1
  | +-- destroy@1.0.4
  | +-- http-errors@1.3.1
  | | `-- inherits@2.0.1
  | +-- mime@1.3.4
  | `-- statuses@1.2.1
  +-- serve-static@1.10.2
  +-- type-is@1.6.11
  | `-- media-typer@0.3.0
  +-- utils-merge@1.0.0
  `-- vary@1.0.1
 
npm WARN enoent ENOENT: no such file or directory, open 'C:\DEV\SourceNodeApp\web\Express\ex1\package.json'
npm WARN ex1 No description
npm WARN ex1 No repository field.
npm WARN ex1 No README data
npm WARN ex1 No license field.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "express"
npm ERR! node v5.6.0
npm ERR! npm  v3.6.0
 
npm ERR! Callback called more than once.
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>
 
npm ERR! Please include the following file with any support request:
npm ERR!     C:\DEV\SourceNodeApp\web\Express\ex1\npm-debug.log
 
C:\DEV\SourceNodeApp\web\Express\ex1
Merci,

Yves