2012-07-30 40 views
5

Tôi gặp sự cố khi cài đặt gói này trên heroku. Có cách nào để làm điều đó không?nút-qrcode cài đặt trên heroku

Tôi thấy đó là sự cố với mô-đun canvas, nhưng tôi không biết phải làm gì.

Đây là nhật ký cài đặt trên heroku. Tôi không biết làm thế nào để có được nhiều hơn:

npm ERR! [email protected] preinstall: `node-waf configure build` 
     npm ERR! `sh "-c" "node-waf configure build"` failed with 1 
     npm ERR! 
     npm ERR! Failed at the [email protected] preinstall script. 
     npm ERR! 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-waf configure build 
     npm ERR! You can get their info via: 
     npm ERR!  npm owner ls canvas 
     npm ERR! There is likely additional logging output above. 

     npm ERR! System Linux 2.6.32-343-ec2 
     npm ERR! command "/tmp/node-node-La1F/bin/node" "/tmp/node-npm-6Xts/cli.js" "install" "--production" 
     npm ERR! cwd /tmp/build_3ejt8evom1p0g 
     npm ERR! node -v v0.6.18 
     npm ERR! npm -v 1.1.41 
     npm ERR! code ELIFECYCLE 
     npm ERR! stack Error: [email protected] preinstall: `node-waf configure build` 
     npm ERR! stack `sh "-c" "node-waf configure build"` failed with 1 
     npm ERR! stack  at ChildProcess.<anonymous> (/tmp/node-npm-6Xts/lib/utils/exec.js:56:20) 
     npm ERR! stack  at ChildProcess.emit (events.js:70:17) 
     npm ERR! stack  at maybeExit (child_process.js:362:16) 
     npm ERR! stack  at Process.onexit (child_process.js:398:5) 
+0

Bạn có thể đăng toàn bộ kết quả xây dựng của mình không? – hunterloftis

Trả lời

0

Tôi sử dụng thành công builpack này Heroku: https://elements.heroku.com/buildpacks/mojodna/heroku-buildpack-cairo

Nhưng trong README của nó, nó sẽ cho bạn biết sử dụng Heroku-buildpack-đa, đó là bị phản đối . Những gì tôi đã làm được, sử dụng Heroku Toolbelt trong dòng lệnh:

buildpacks Heroku: set --index 1 https://github.com/mojodna/heroku-buildpack-cairo.git

buildpacks Heroku: thêm Heroku/nodejs

Và sau đó đẩy tới Heroku nên nó có thể xây dựng lại các gói.

Các vấn đề liên quan