NPM init错误日志文件详细信息 - 在创建package.json文件时

时间:2013-10-16 22:40:09

标签: json npm

我是新手学习node.js并在此处复制和粘贴npm-debug.txt文件的详细信息:

如何最好地描述此错误以及如何解决?

0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'init' ]
2 info using npm@1.3.11
3 info using node@v0.10.20
4 verbose node symlink C:\Program Files\nodejs\\node.exe
5 silly package data undefined
6 info init written successfully
7 error Error: canceled
7 error     at Interface.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\read\lib\read.js:66:13)
7 error     at Interface.EventEmitter.emit (events.js:92:17)
7 error     at Interface._ttyWrite (readline.js:620:16)
7 error     at ReadStream.onkeypress (readline.js:99:10)
7 error     at ReadStream.EventEmitter.emit (events.js:98:17)
7 error     at emitKey (readline.js:1095:12)
7 error     at ReadStream.onData (readline.js:840:14)
7 error     at ReadStream.EventEmitter.emit (events.js:95:17)
7 error     at ReadStream.<anonymous> (_stream_readable.js:746:14)
7 error     at ReadStream.EventEmitter.emit (events.js:92:17)
8 error If you need help, you may report this log at:
8 error     <http://github.com/isaacs/npm/issues>
8 error or email it to:
8 error     <npm-@googlegroups.com>
9 error System Windows_NT 6.1.7601
10 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "init"
11 error cwd C:\web-design\node.js\node_modules
12 error node -v v0.10.20
13 error npm -v 1.3.11
14 verbose exit [ 1, true ]

1 个答案:

答案 0 :(得分:-2)

您的代码中存在错误。检查一下。