Error: EEXIST, mkdir 'C:\Users\gc57\AppData\Roaming\npm' --nodejs出錯原因

瓜瓜東西發表於2014-09-16
D:\programme\nodejs>npm install -g express-generator@4
Error: EEXIST, mkdir 'C:\Users\gc57\AppData\Roaming\npm'


D:\programme\nodejs>npm -v
1.4.23

D:\programme\nodejs>npm install -g express-generator@4
Error: EEXIST, mkdir 'C:\Users\gc57\AppData\Roaming\npm'


D:\programme\nodejs>npm install -g express
Error: EEXIST, mkdir 'C:\Users\gc57\AppData\Roaming\npm'


D:\programme\nodejs>npm install  express
express@4.9.0 node_modules\express
├── fresh@0.2.4
├── merge-descriptors@0.0.2
├── range-parser@1.0.2
├── utils-merge@1.0.0
├── media-typer@0.3.0
├── finalhandler@0.2.0
├── serve-static@1.6.1
├── cookie@0.1.2
├── escape-html@1.0.1
├── buffer-crc32@0.2.3
├── cookie-signature@1.0.5
├── vary@1.0.0
├── methods@1.1.0
├── parseurl@1.3.0
├── path-to-regexp@0.1.3
├── depd@0.4.4
├── qs@2.2.3
├── on-finished@2.1.0 (ee-first@1.0.5)
├── debug@2.0.0 (ms@0.6.2)
├── etag@1.3.1 (crc@3.0.0)
├── proxy-addr@1.0.1 (ipaddr.js@0.1.2)
├── type-is@1.5.1 (mime-types@2.0.1)
├── accepts@1.1.0 (negotiator@0.4.7, mime-types@2.0.1)
└── send@0.9.1 (ms@0.6.2, destroy@1.0.3, mime@1.2.11)

D:\programme\nodejs>npm config get prefix
C:\Users\gc57\AppData\Roaming\npm

D:\programme\nodejs>npm config set prefix "D:\programme\nodejsexpress

D:\programme\nodejs>npm install -g express
express@4.9.0 D:\programme\nodejsexpress\node_modules\express
├── merge-descriptors@0.0.2
├── cookie@0.1.2
├── escape-html@1.0.1
├── fresh@0.2.4
├── range-parser@1.0.2
├── cookie-signature@1.0.5
├── finalhandler@0.2.0
├── utils-merge@1.0.0
├── vary@1.0.0
├── media-typer@0.3.0
├── parseurl@1.3.0
├── methods@1.1.0
├── serve-static@1.6.1
├── buffer-crc32@0.2.3
├── path-to-regexp@0.1.3
├── depd@0.4.4
├── qs@2.2.3
├── proxy-addr@1.0.1 (ipaddr.js@0.1.2)
├── on-finished@2.1.0 (ee-first@1.0.5)
├── debug@2.0.0 (ms@0.6.2)
├── send@0.9.1 (ms@0.6.2, destroy@1.0.3, mime@1.2.11)
├── etag@1.3.1 (crc@3.0.0)
├── accepts@1.1.0 (negotiator@0.4.7, mime-types@2.0.1)
└── type-is@1.5.1 (mime-types@2.0.1)

D:\programme\nodejs>

相關文章