selaux / miner-dashboard

Node.js based app to show the current status of your miner in a browser.
36 stars 15 forks source link

Remove dependencies that require building #49

Closed drak42 closed 10 years ago

drak42 commented 10 years ago

Hi,

Errors following your guide and I have done the nodejs and npm fix you mentioned in one of the closed issues.

Any thoughts?

ERR! npm ERR! Additional logging details can be found in: npm ERR! /opt/miner-dashboard/npm-debug.log npm ERR! not ok code 0

npm ERR! miner-dashboard@0.3.0 start: npm install --production && grunt compile && node app npm ERR! Exit status 254 npm ERR! npm ERR! Failed at the miner-dashboard@0.3.0 start script. npm ERR! This is most likely a problem with the miner-dashboard package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm install --production && grunt compile && node app npm ERR! You can get their info via: npm ERR! npm owner ls miner-dashboard npm ERR! There is likely additional logging output above. npm ERR! System Linux 3.11.0-19-generic npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "start" npm ERR! cwd /opt/miner-dashboard npm ERR! node -v v0.11.12-pre npm ERR! npm -v 1.4.3 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /opt/miner-dashboard/npm-debug.log npm ERR! not ok code 0

drak42 commented 10 years ago

gyp ERR! configure error gyp ERR! stack Error: "pre" versions of node cannot be installed, use the --nodedir flag instead gyp ERR! stack at install (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/install.js:65:16) gyp ERR! stack at Object.self.commands.(anonymous function) as install gyp ERR! stack at getNodeDir (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:150:20) gyp ERR! stack at /usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:93:9 gyp ERR! stack at ChildProcess.exithandler (child_process.js:710:7) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:107:17) gyp ERR! stack at maybeClose (child_process.js:982:16) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1049:5) gyp ERR! System Linux 3.11.0-19-generic gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/miner-dashboard/node_modules/rickshaw/node_modules/d3/node_modules/jsdom/node_modules/contextify gyp ERR! node -v v0.11.12-pre gyp ERR! node-gyp -v v0.12.2 gyp ERR! not ok npm ERR! contextify@0.1.8 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the contextify@0.1.8 install script. npm ERR! This is most likely a problem with the contextify 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 their info via: npm ERR! npm owner ls contextify npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.11.0-19-generic npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--production" npm ERR! cwd /opt/miner-dashboard npm ERR! node -v v0.11.12-pre npm ERR! npm -v 1.4.3 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /opt/miner-dashboard/npm-debug.log npm ERR! not ok code 0

npm ERR! miner-dashboard@0.3.0 start: npm install --production && grunt compile && node app npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the miner-dashboard@0.3.0 start script. npm ERR! This is most likely a problem with the miner-dashboard package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm install --production && grunt compile && node app npm ERR! You can get their info via: npm ERR! npm owner ls miner-dashboard npm ERR! There is likely additional logging output above. npm ERR! System Linux 3.11.0-19-generic npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "start" npm ERR! cwd /opt/miner-dashboard npm ERR! node -v v0.11.12-pre npm ERR! npm -v 1.4.3 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /opt/miner-dashboard/npm-debug.log npm ERR! not ok code 0

selaux commented 10 years ago

Looks like you have a preview version of nodejs installed (0.11.12-pre) you need to install current stable (0.10.28), I haven't tested the dashboard in node 0.11 yet.

drak42 commented 10 years ago

Hey, Thanks for getting back to me.

I have installed 0.10.8 and still get this. Errors seem to be around gyp

Chris

Traceback (most recent call last): File "/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in sys.exit(gyp.script_main()) AttributeError: 'module' object has no attribute 'script_main' gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:340:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:807:12) gyp ERR! System Linux 3.11.0-19-generic gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/miner-dashboard/node_modules/rickshaw/node_modules/d3/node_modules/jsdom/node_modules/contextify gyp ERR! node -v v0.10.28 gyp ERR! node-gyp -v v0.13.0 gyp ERR! not ok npm ERR! contextify@0.1.8 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the contextify@0.1.8 install script. npm ERR! This is most likely a problem with the contextify 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 their info via: npm ERR! npm owner ls contextify npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.11.0-19-generic npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--production" npm ERR! cwd /opt/miner-dashboard npm ERR! node -v v0.10.28 npm ERR! npm -v 1.4.9 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /opt/miner-dashboard/npm-debug.log npm ERR! not ok code 0

npm ERR! miner-dashboard@0.3.0 start: npm install --production && grunt compile && node app npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the miner-dashboard@0.3.0 start script. npm ERR! This is most likely a problem with the miner-dashboard package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! npm install --production && grunt compile && node app npm ERR! You can get their info via: npm ERR! npm owner ls miner-dashboard npm ERR! There is likely additional logging output above. npm ERR! System Linux 3.11.0-19-generic npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "start" npm ERR! cwd /opt/miner-dashboard npm ERR! node -v v0.10.28 npm ERR! npm -v 1.4.9 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /opt/miner-dashboard/npm-debug.log npm ERR! not ok code 0

drak42 commented 10 years ago

This worked to resolve it

http://stackoverflow.com/questions/21155922/error-installing-node-gyp-on-ubuntu

selaux commented 10 years ago

I'm still trying to remove dependencies that build something and thus require node-gyp. But it looks like one needs to have python2 installed atm, bad...