➜ Angus-LeanEngine git:(master) ✗ lean deploy --noCache
部署到:预备环境
压缩项目文件 ...
(node:58550) DeprecationWarning: Using Buffer without `new` will soon stop working. Use `new Buffer()`, or preferably `Buffer.from()`, `Buffer.allocUnsafe()` or `Buffer.alloc()` instead.
生成临时文件:/var/folders/j3/xg7_xn554tzg5f9c13k4_7l00000gn/T/1477659000490.zip
开始上传项目文件 ...
2016-10-28 20:50:07 [INFO] 开始构建 20161028-205007
2016-10-28 20:50:07 [INFO] 正在下载应用代码 ...
2016-10-28 20:50:08 [INFO] 正在解压缩应用代码 ...
2016-10-28 20:50:09 [INFO] 运行环境: nodejs (leanengine/nodejs-base)
2016-10-28 20:50:09 [INFO] 正在下载和安装依赖项 ...
2016-10-28 20:50:41 [ERROR] 部署失败:The command '/bin/sh -c chown leanengine:leanengine . && su leanengine -c 'npm install --production --registry=http://registry.npm.taobao.org --disturl=http://npm.taobao.org/dist' && su leanengine -c 'npm list --depth 0'' returned a non-zero code: 1:
> canvas@1.3.16 install /home/leanengine/app/node_modules/canvas
> node-gyp rebuild
./util/has_lib.sh: line 30: pkg-config: command not found
gyp: Call to './util/has_lib.sh freetype' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 3.13.0-63-generic
gyp ERR! command "/usr/local/nvm/versions/node/v6.9.1/bin/node" "/usr/local/nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/leanengine/app/node_modules/canvas
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
Angus-LeanEngine@1.0.0 /home/leanengine/app
+-- async@2.1.2
| `-- lodash@4.16.4
+-- body-parser@1.12.3
| +-- bytes@1.0.0
| +-- content-type@1.0.2
| +-- debug@2.1.3
| | `-- ms@0.7.0
| +-- depd@1.0.1
| +-- iconv-lite@0.4.8
| +-- on-finished@2.2.1
| | `-- ee-first@1.1.0
| +-- qs@2.4.1
| +-- raw-body@1.3.4
| `-- type-is@1.6.13
| +-- media-typer@0.3.0
| `-- mime-types@2.1.12
| `-- mime-db@1.24.0
+-- connect-timeout@1.7.0
| +-- debug@2.2.0
| +-- http-errors@1.3.1
| | +-- inherits@2.0.3
| | `-- statuses@1.3.0
| +-- ms@0.7.1
| +-- on-finished@2.3.0
| | `-- ee-first@1.1.1
| `-- on-headers@1.0.1
+-- cookie-parser@1.4.3
| +-- cookie@0.3.1
| `-- cookie-signature@1.0.6
+-- crypto@0.0.3
+-- ejs@2.3.1
+-- express@4.12.3
| +-- accepts@1.2.13
| | `-- negotiator@0.5.3
| +-- content-disposition@0.5.0
| +-- cookie@0.1.2
| +-- escape-html@1.0.1
| +-- etag@1.5.1
| | `-- crc@3.2.1
| +-- finalhandler@0.3.4
| +-- fresh@0.2.4
| +-- merge-descriptors@1.0.0
| +-- methods@1.1.2
| +-- parseurl@1.3.1
| +-- path-to-regexp@0.1.3
| +-- proxy-addr@1.0.10
| | +-- forwarded@0.1.0
| | `-- ipaddr.js@1.0.5
| +-- range-parser@1.0.3
| +-- send@0.12.2
| | +-- destroy@1.0.3
| | `-- mime@1.3.4
| +-- serve-static@1.9.3
| | `-- send@0.12.3
| | +-- debug@2.2.0
| | +-- etag@1.6.0
| | `-- ms@0.7.1
| +-- utils-merge@1.0.0
| `-- vary@1.0.1
+-- leanengine@1.2.2
| +-- body-parser@1.9.0
| | +-- iconv-lite@0.4.4
| | +-- on-finished@2.1.0
| | | `-- ee-first@1.0.5
| | +-- qs@2.2.4
| | +-- raw-body@1.3.0
| | | `-- iconv-lite@0.4.4
| | `-- type-is@1.5.7
| | `-- mime-types@2.0.14
| | `-- mime-db@1.12.0
| +-- connect@3.2.0
| | +-- debug@2.0.0
| | | `-- ms@0.6.2
| | `-- finalhandler@0.2.0
| +-- cookies@0.5.0
| | `-- keygrip@1.0.1
| +-- debug@2.0.0
| | `-- ms@0.6.2
| +-- leancloud-storage@1.4.0
| | +-- debug@2.2.0
| | | `-- ms@0.7.1
| | +-- localstorage-memory@1.0.2
| | +-- md5@2.2.1
| | | +-- charenc@0.0.1
| | | +-- crypt@0.0.1
| | | `-- is-buffer@1.1.4
| | +-- qiniu@6.1.13
| | | +-- crc32@0.2.2
| | | +-- formstream@0.0.7
| | | | +-- buffer-concat@0.0.1
| | | | +-- mime@1.2.9
| | | | `-- pause-stream@0.0.11
| | | | `-- through@2.3.8
| | | +-- mime@1.2.9
| | | +-- sync-request@3.0.1
| | | | +-- concat-stream@1.5.2
| | | | | `-- typedarray@0.0.6
| | | | +-- http-response-object@1.1.0
| | | | `-- then-request@2.2.0
| | | | +-- caseless@0.11.0
| | | | +-- http-basic@2.5.1
| | | | +-- promise@7.1.1
| | | | | `-- asap@2.0.5
| | | | `-- qs@6.3.0
| | | `-- urllib@0.5.1
| | | `-- debug@0.7.2
| | `-- superagent@2.3.0
| | +-- component-emitter@1.2.1
| | +-- cookiejar@2.1.0
| | +-- debug@2.2.0
| | | `-- ms@0.7.1
| | +-- extend@3.0.0
| | +-- form-data@1.0.0-rc4
| | | +-- async@1.5.2
| | | `-- combined-stream@1.0.5
| | | `-- delayed-stream@1.0.0
| | +-- formidable@1.0.17
| | +-- qs@6.3.0
| | `-- readable-stream@2.0.6
| | +-- core-util-is@1.0.2
| | +-- isarray@1.0.0
| | +-- process-nextick-args@1.0.7
| | +-- string_decoder@0.10.31
| | `-- util-deprecate@1.0.2
| `-- on-headers@1.0.0
+-- redis@2.2.5
| `-- double-ended-queue@2.1.0-0
`-- underscore@1.8.3
npm WARN Angus-LeanEngine@1.0.0 No repository field.
npm ERR! Linux 3.13.0-63-generic
npm ERR! argv "/usr/local/nvm/versions/node/v6.9.1/bin/node" "/usr/local/bin/npm" "install" "--production" "--registry=http://registry.npm.taobao.org" "--disturl=http://npm.taobao.org/dist"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! canvas@1.3.16 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the canvas@1.3.16 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the canvas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs canvas
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls canvas
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/leanengine/app/npm-debug.log
抱歉,部署应用失败:部署失败:The command '/bin/sh -c chown leanengine:leanengine . && su leanengine -c 'npm install --production --registry=http://registry.npm.taobao.org --disturl=http://npm.taobao.org/dist' && su leanengine -c 'npm list --depth 0'' returned a non-zero code: 1:
> canvas@1.3.16 install /home/leanengine/app/node_modules/canvas
> node-gyp rebuild
./util/has_lib.sh: line 30: pkg-config: command not found
gyp: Call to './util/has_lib.sh freetype' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/local/nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:305:16)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 3.13.0-63-generic
gyp ERR! command "/usr/local/nvm/versions/node/v6.9.1/bin/node" "/usr/local/nvm/versions/node/v6.9.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/leanengine/app/node_modules/canvas
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
Angus-LeanEngine@1.0.0 /home/leanengine/app
+-- async@2.1.2
| `-- lodash@4.16.4
+-- body-parser@1.12.3
| +-- bytes@1.0.0
| +-- content-type@1.0.2
| +-- debug@2.1.3
| | `-- ms@0.7.0
| +-- depd@1.0.1
| +-- iconv-lite@0.4.8
| +-- on-finished@2.2.1
| | `-- ee-first@1.1.0
| +-- qs@2.4.1
| +-- raw-body@1.3.4
| `-- type-is@1.6.13
| +-- media-typer@0.3.0
| `-- mime-types@2.1.12
| `-- mime-db@1.24.0
+-- connect-timeout@1.7.0
| +-- debug@2.2.0
| +-- http-errors@1.3.1
| | +-- inherits@2.0.3
| | `-- statuses@1.3.0
| +-- ms@0.7.1
| +-- on-finished@2.3.0
| | `-- ee-first@1.1.1
| `-- on-headers@1.0.1
+-- cookie-parser@1.4.3
| +-- cookie@0.3.1
| `-- cookie-signature@1.0.6
+-- crypto@0.0.3
+-- ejs@2.3.1
+-- express@4.12.3
| +-- accepts@1.2.13
| | `-- negotiator@0.5.3
| +-- content-disposition@0.5.0
| +-- cookie@0.1.2
| +-- escape-html@1.0.1
| +-- etag@1.5.1
| | `-- crc@3.2.1
| +-- finalhandler@0.3.4
| +-- fresh@0.2.4
| +-- merge-descriptors@1.0.0
| +-- methods@1.1.2
| +-- parseurl@1.3.1
| +-- path-to-regexp@0.1.3
| +-- proxy-addr@1.0.10
| | +-- forwarded@0.1.0
| | `-- ipaddr.js@1.0.5
| +-- range-parser@1.0.3
| +-- send@0.12.2
| | +-- destroy@1.0.3
| | `-- mime@1.3.4
| +-- serve-static@1.9.3
| | `-- send@0.12.3
| | +-- debug@2.2.0
| | +-- etag@1.6.0
| | `-- ms@0.7.1
| +-- utils-merge@1.0.0
| `-- vary@1.0.1
+-- leanengine@1.2.2
| +-- body-parser@1.9.0
| | +-- iconv-lite@0.4.4
| | +-- on-finished@2.1.0
| | | `-- ee-first@1.0.5
| | +-- qs@2.2.4
| | +-- raw-body@1.3.0
| | | `-- iconv-lite@0.4.4
| | `-- type-is@1.5.7
| | `-- mime-types@2.0.14
| | `-- mime-db@1.12.0
| +-- connect@3.2.0
| | +-- debug@2.0.0
| | | `-- ms@0.6.2
| | `-- finalhandler@0.2.0
| +-- cookies@0.5.0
| | `-- keygrip@1.0.1
| +-- debug@2.0.0
| | `-- ms@0.6.2
| +-- leancloud-storage@1.4.0
| | +-- debug@2.2.0
| | | `-- ms@0.7.1
| | +-- localstorage-memory@1.0.2
| | +-- md5@2.2.1
| | | +-- charenc@0.0.1
| | | +-- crypt@0.0.1
| | | `-- is-buffer@1.1.4
| | +-- qiniu@6.1.13
| | | +-- crc32@0.2.2
| | | +-- formstream@0.0.7
| | | | +-- buffer-concat@0.0.1
| | | | +-- mime@1.2.9
| | | | `-- pause-stream@0.0.11
| | | | `-- through@2.3.8
| | | +-- mime@1.2.9
| | | +-- sync-request@3.0.1
| | | | +-- concat-stream@1.5.2
| | | | | `-- typedarray@0.0.6
| | | | +-- http-response-object@1.1.0
| | | | `-- then-request@2.2.0
| | | | +-- caseless@0.11.0
| | | | +-- http-basic@2.5.1
| | | | +-- promise@7.1.1
| | | | | `-- asap@2.0.5
| | | | `-- qs@6.3.0
| | | `-- urllib@0.5.1
| | | `-- debug@0.7.2
| | `-- superagent@2.3.0
| | +-- component-emitter@1.2.1
| | +-- cookiejar@2.1.0
| | +-- debug@2.2.0
| | | `-- ms@0.7.1
| | +-- extend@3.0.0
| | +-- form-data@1.0.0-rc4
| | | +-- async@1.5.2
| | | `-- combined-stream@1.0.5
| | | `-- delayed-stream@1.0.0
| | +-- formidable@1.0.17
| | +-- qs@6.3.0
| | `-- readable-stream@2.0.6
| | +-- core-util-is@1.0.2
| | +-- isarray@1.0.0
| | +-- process-nextick-args@1.0.7
| | +-- string_decoder@0.10.31
| | `-- util-deprecate@1.0.2
| `-- on-headers@1.0.0
+-- redis@2.2.5
| `-- double-ended-queue@2.1.0-0
`-- underscore@1.8.3
npm WARN Angus-LeanEngine@1.0.0 No repository field.
npm ERR! Linux 3.13.0-63-generic
npm ERR! argv "/usr/local/nvm/versions/node/v6.9.1/bin/node" "/usr/local/bin/npm" "install" "--production" "--registry=http://registry.npm.taobao.org" "--disturl=http://npm.taobao.org/dist"
npm ERR! node v6.9.1
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE
npm ERR! canvas@1.3.16 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the canvas@1.3.16 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the canvas package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs canvas
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls canvas
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/leanengine/app/npm-debug.log