gratipay / grtp.co

Gratipay Widgets + API
https://grtp.co/
MIT License
26 stars 19 forks source link

Can't build grtp.co #90

Closed techtonik closed 9 years ago

techtonik commented 9 years ago

I am just trying to copy my widgets from /lib to /www during deployment and test it. It doesn't work and I don't understand why the build system is so complicated. This is what happens when I run make test:

[STDOUT] npm install
[INFO] Environment preparation done. Application grtp.co starting up…
[STDERR] npm WARN engine node-pngjs@0.0.2: wanted: {"node":"0.8.x"} (current: {"node":"0.10.29","npm":"1.4.21"})
[STDOUT] 
[STDOUT] > phantomjs@1.9.12 install /app/node_modules/dalekjs/node_modules/dalek-browser-phantomjs/node_modules/phantomjs
[STDOUT] > node install.js
[STDOUT] 
[STDERR] sh: 1: node: not found
[STDERR] npm WARN This failure might be due to the use of legacy binary "node"
[STDERR] npm WARN For further explanations, please read
[STDERR] /usr/share/doc/nodejs/README.Debian
[STDERR]  
[STDERR] npm ERR! Error: ENOENT, lstat '/app/node_modules/dalekjs/node_modules/dalek-driver-native/node_modules/dalek-internal-webdriver/node_modules/wd/lib/asserters.js'
[STDERR] npm ERR! If you need help, you may report this *entire* log,
[STDERR] npm ERR! including the npm and node versions, at:
[STDERR] npm ERR!     <http://github.com/npm/npm/issues>
[STDERR] 
[STDERR] npm ERR! System Linux 3.10.0-123.9.3.el7.x86_64
[STDERR] npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
[STDERR] npm ERR! cwd /app
[STDERR] npm ERR! node -v v0.10.29
[STDERR] npm ERR! npm -v 1.4.21
[STDERR] npm ERR! path /app/node_modules/dalekjs/node_modules/dalek-driver-native/node_modules/dalek-internal-webdriver/node_modules/wd/lib/asserters.js
[STDERR] npm ERR! fstream_path /app/node_modules/dalekjs/node_modules/dalek-driver-native/node_modules/dalek-internal-webdriver/node_modules/wd/lib/asserters.js
[STDERR] npm ERR! fstream_type File
[STDERR] npm ERR! fstream_class FileWriter
[STDERR] npm ERR! code ENOENT
[STDERR] npm ERR! errno 34
[STDERR] npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
[STDERR] npm ERR! fstream_stack Object.oncomplete (evalmachine.<anonymous>:107:15)
[STDERR] npm ERR! phantomjs@1.9.12 install: `node install.js`
[STDERR] npm ERR! Exit status 127
...
techtonik commented 9 years ago

Looks like a Debian-specific problem, http://stackoverflow.com/questions/21168141/can-not-install-packages-using-node-package-manager-in-ubuntu Trying if sudo apt-get install nodejs-legacy will cure it.

techtonik commented 9 years ago

sudo apt-get install nodejs-legacy fixed it.