0 info it worked if it ends with ok 1 verbose cli [ 'D:\AppCan\AppCanStudioEnterpriseV3.3\HDK\emulator\mas\node.exe', 1 verbose cli 'D:\AppCan\AppCanStudioEnterpriseV3.3\HDK\emulator\mas\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'init', 1 verbose cli '-y' ] 2 info using [email protected] 3 info using [email protected] 4 error Error: EINVAL, invalid argument 4 error at new Socket (net.js:157:18) 4 error at process.stdin (node.js:693:19) 4 error at read (D:\AppCan\AppCanStudioEnterpriseV3.3\HDK\emulator\mas\node_modules\npm\node_modules\read\lib\read.js:18:36) 4 error at PromZard.prompt (D:\AppCan\AppCanStudioEnterpriseV3.3\HDK\emulator\mas\node_modules\npm\node_modules\init-package-json\node_modules\promzard\promzard.js:214:3) 4 error at PromZard.L (D:\AppCan\AppCanStudioEnterpriseV3.3\HDK\emulator\mas\node_modules\npm\node_modules\init-package-json\node_modules\promzard\promzard.js:177:21) 4 error at PromZard.walk (D:\AppCan\AppCanStudioEnterpriseV3.3\HDK\emulator\mas\node_modules\npm\node_modules\init-package-json\node_modules\promzard\promzard.js:146:5) 4 error at PromZard.loaded (D:\AppCan\AppCanStudioEnterpriseV3.3\HDK\emulator\mas\node_modules\npm\node_modules\init-package-json\node_modules\promzard\promzard.js:90:8) 4 error at PromZard. (D:\AppCan\AppCanStudioEnterpriseV3.3\HDK\emulator\mas\node_modules\npm\node_modules\init-package-json\node_modules\promzard\promzard.js:57:10) 4 error at fs.js:272:14 4 error at D:\AppCan\AppCanStudioEnterpriseV3.3\HDK\emulator\mas\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:105:5 5 error If you need help, you may report this entire log, 5 error including the npm and node versions, at: 5 error http://github.com/npm/npm/issues 6 error System Windows_NT 6.1.7601 7 error command "D:\AppCan\AppCanStudioEnterpriseV3.3\HDK\emulator\mas\node.exe" "D:\AppCan\AppCanStudioEnterpriseV3.3\HDK\emulator\mas\node_modules\npm\bin\npm-cli.js" "init" "-y" 8 error cwd E:\JsTraining\node\simple-app-demo 9 error node -v v0.10.38 10 error npm -v 1.4.3 11 error syscall uv_pipe_open 12 error code EINVAL 13 error errno 18 14 verbose exit [ 18, true ]
回复 (2)
G
召唤@大神
G
下面是 bash的代码: $ npm init -y This utility will walk you through creating a package.json file. It only covers the most common items, and tries to guess sane defaults.
See npm help json for definitive documentation on these fields
and exactly what they do.
Use npm install <pkg> --save afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
参与回复
登录后即可参与回复。登录