mitro-co / mitro

Repository for all Mitro client & server code
GNU General Public License v3.0
1.65k stars 242 forks source link

browser extension build failing #49

Open wellphd opened 10 years ago

wellphd commented 10 years ago

./build.sh in mitro/browser-ext/api fails with the following: gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp ubuntu 14.04 LTS, all the latest stuff. any hints are greatly appreciated.

wellphd commented 10 years ago

Some progress on this issue. I updated my outdated nodejs... https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager.

now investigating: npm ERR! fetch failed https://registry.npmjs.org/throttleit/-/throttleit-0.0.2.tgz npm WARN optional dep failed, continuing fsevents@0.2.1 npm ERR! fetch failed https://registry.npmjs.org/policyfile/-/policyfile-0.0.4.tgz npm ERR! fetch failed https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.1.tgz npm ERR! fetch failed https://registry.npmjs.org/cookie/-/cookie-0.1.0.tgz

wellphd commented 10 years ago

https://registry.npmjs.org/throttleit/-/throttleit-0.0.2.t is returning {"error":"not_found","reason":"Document is missing attachment"} off to the npmjs ppl for some help here.

wellphd commented 10 years ago

it appears the previous error is benign and inconsistently occuring. So the next error:

Putting child 0x02503d10 (/home/paul/mitro/mitro/browser-ext/login/frontend/gen-files/html/admin-audit.html) PID 3260 on the chain. Live child 0x02503d10 (/home/paul/mitro/mitro/browser-ext/login/frontend/gen-files/html/admin-audit.html) PID 3260 /home/paul/mitro/mitro/browser-ext/login/frontend/gen-files/html/admin-audit.html Reaping winning child 0x02503d10 PID 3260 Live child 0x02503d10 (/home/paul/mitro/mitro/browser-ext/login/frontend/gen-files/html/admin-audit.html) PID 3261 Reaping losing child 0x02503d10 PID 3261 make: *\ [/home/paul/mitro/mitro/browser-ext/login/frontend/gen-files/html/admin-audit.html] Error 1 Removing child 0x02503d10 PID 3261 from chain. I'm thinking this some perms thing, but the user is in the plugdev group... so... Still looking for answers.

evanj commented 10 years ago

Huh. I'm not even sure what dependency this is trying to pull in that is failing. Can you try commenting out each of the "npm" lines until it actually runs? I suspect the issue may be webworker-threads, which is probably not even needed anymore (it was used to run some unit tests from Node).

servomac commented 9 years ago

I confirm it, is webworker-threads (sorry for posting on old issues, but i have replicated it).

root@83aa8ac5ae08:/srv/mitro/browser-ext/api# ./build.sh                                     
npm http GET https://registry.npmjs.org/less
npm http 200 https://registry.npmjs.org/less
      [......]
> webworker-threads@0.5.6 install /srv/mitro/browser-ext/api/build/node/lib/node_modules/webworker-threads
> node-gyp rebuild

/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127. 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/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.16.0-43-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /srv/mitro/browser-ext/api/build/node/lib/node_modules/webworker-threads
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok 
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! weird error 1
npm ERR! not ok code 0

The versions of the software involved and the distribution:

root@83aa8ac5ae08:/srv/mitro/browser-ext/api# npm version
{ http_parser: '1.0',
  node: '0.10.25',
  v8: '3.14.5.9',
  ares: '1.10.0',
  uv: '0.10.23',
  zlib: '1.2.8',
  modules: '11',
  openssl: '1.0.1f',
  npm: '1.3.10' }
root@83aa8ac5ae08:/srv/mitro/browser-ext/api# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.2 LTS
Release:    14.04
Codename:   trusty