These are chat archives for QingWei-Li/cooking

Aug 2016
Aug 21 2016 12:24
0.6.2版本的cooking watch项目失败,尝试过create最基础的css/scss架子,也运行不起来,错误记录如下,跟我的node版本有关吗?
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'dev' ]
2 info using npm@3.10.3
3 info using node@v6.4.0
4 verbose run-script [ 'predev', 'dev', 'postdev' ]
5 info lifecycle doufan_operation_admin@0.0.1~predev: doufan_operation_admin@0.0.1
6 silly lifecycle doufan_operation_admin@0.0.1~predev: no script for predev, continuing
7 info lifecycle doufan_operation_admin@0.0.1~dev: doufan_operation_admin@0.0.1
8 verbose lifecycle doufan_operation_admin@0.0.1~dev: unsafe-perm in lifecycle true
9 verbose lifecycle doufan_operation_admin@0.0.1~dev: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Volumes/file/workspace/doufan/dfapp_server/bmwpet-parent/bmwpet-admin/src/main/webapp/operation_admin/node_modules/.bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
10 verbose lifecycle doufan_operation_admin@0.0.1~dev: CWD: /Volumes/file/workspace/doufan/dfapp_server/bmwpet-parent/bmwpet-admin/src/main/webapp/operation_admin
11 silly lifecycle doufan_operation_admin@0.0.1~dev: Args: [ '-c', 'cooking watch' ]
12 silly lifecycle doufan_operation_admin@0.0.1~dev: Returned: code: 1  signal: null
13 info lifecycle doufan_operation_admin@0.0.1~dev: Failed to exec dev script
14 verbose stack Error: doufan_operation_admin@0.0.1 dev: `cooking watch`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:242:16)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at EventEmitter.emit (events.js:191:7)
14 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack     at emitTwo (events.js:106:13)
14 verbose stack     at ChildProcess.emit (events.js:191:7)
14 verbose stack     at maybeClose (internal/child_process.js:852:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
15 verbose pkgid doufan_operation_admin@0.0.1
16 verbose cwd /Volumes/file/workspace/doufan/dfapp_server/bmwpet-parent/bmwpet-admin/src/main/webapp/operation_admin
17 error Darwin 15.6.0
18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev"
19 error node v6.4.0
20 error npm  v3.10.3
21 error code ELIFECYCLE
22 error doufan_operation_admin@0.0.1 dev: `cooking watch`
22 error Exit status 1
23 error Failed at the doufan_operation_admin@0.0.1 dev script 'cooking watch'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the doufan_operation_admin package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     cooking watch
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs doufan_operation_admin
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls doufan_operation_admin
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
Aug 21 2016 13:46
@isunkui 这些信息看不出啥问题 麻烦把命令行里的错误信息贴一下
Aug 21 2016 15:21
@QingWei-Li 找到问题了,跟我指定的ip有关,换了电脑ip没对上。
Aug 21 2016 15:34
[cooking] - 插件加载成功: sass

[cooking] - server 启动中...
      throw er; // Unhandled 'error' event

Error: listen EADDRINUSE
    at Object.exports._errnoException (util.js:1026:11)
    at exports._exceptionWithHostPort (util.js:1049:20)
    at Server._listen2 (net.js:1253:14)
    at listen (net.js:1289:10)
    at net.js:1399:9
    at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:65:16)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:84:10)