2012-07-30 109 views
5

我有問題在heroku上安裝這個軟件包。 有沒有辦法做到這一點?node-qrcode安裝在heroku上

我看到這是一個畫布模塊的問題,但我不知道該怎麼做。

這是在heroku上安裝的日誌。我不知道如何讓更多:

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

你可以發佈你的完整版本輸出嗎? – hunterloftis 2015-04-23 23:08:16

回答

0

我成功地使用這個Heroku的builpack: https://elements.heroku.com/buildpacks/mojodna/heroku-buildpack-cairo

但在其自述,它會告訴你使用Heroku的-buildpack的多,這是過時。我所做的就是,在命令行中使用Heroku的列工具:

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

的Heroku buildpacks:添加的Heroku/

的NodeJS

然後推到這樣的Heroku它可以再次構建包。