selaux / miner-dashboard

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

npm reporting issue with miner-dashboard with npm and nodejs-legacy installed on start #40

Closed KoSoVaR closed 10 years ago

KoSoVaR commented 10 years ago

I'm having an issue installing miner-dashboard. It pretty much happens on every new system I try this on.

I start off with installing npm and node, then I git clone the miner-dashboard. I run in to the directory, setup my config, and issue an npm start.

miner@miner001:~/miner-dashboard$ cat /home/miner/miner-dashboard/npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'start' ]
2 info using npm@1.2.18
3 info using node@v0.10.15
4 verbose read json /home/miner/miner-dashboard/package.json
5 verbose run-script [ 'prestart', 'start', 'poststart' ]
6 info prestart miner-dashboard@0.2.0
7 info start miner-dashboard@0.2.0
8 verbose unsafe-perm in lifecycle true
9 silly exec sh "-c" "npm install --production && grunt compile && node app"
10 silly sh,-c,npm install --production && grunt compile && node app,/home/miner/miner-dashboard spawning
11 info miner-dashboard@0.2.0 Failed to exec start script
12 error miner-dashboard@0.2.0 start: `npm install --production && grunt compile && node app`
12 error `sh "-c" "npm install --production && grunt compile && node app"` failed with 1
13 error Failed at the miner-dashboard@0.2.0 start script.
13 error This is most likely a problem with the miner-dashboard package,
13 error not with npm itself.
13 error Tell the author that this fails on your system:
13 error     npm install --production && grunt compile && node app
13 error You can get their info via:
13 error     npm owner ls miner-dashboard
13 error There is likely additional logging output above.
14 error System Linux 3.11.0-18-generic
15 error command "/usr/bin/nodejs" "/usr/bin/npm" "start"
16 error cwd /home/miner/miner-dashboard
17 error node -v v0.10.15
18 error npm -v 1.2.18
19 error code ELIFECYCLE
20 verbose exit [ 1, true ]
miner@miner001:~/miner-dashboard$ 

I then install nodejs-legacy which removes node and I get the same error.

Any hints? I had it running on another machine at one point but have no idea how I got it running. Now this just happens.. every attempt.

Thanks!

selaux commented 10 years ago

Can you try executing the commands (npm install --production, node_modules/.bin/grunt compile and node app) by themselves and post their output?

KoSoVaR commented 10 years ago

Hoping I did this right..

npm install --production

miner@miner001:~/miner-dashboard$ npm install --production
npm http GET https://registry.npmjs.org/grunt-browserify/1.3.1
npm http 304 https://registry.npmjs.org/grunt-browserify/1.3.1
npm http GET https://registry.npmjs.org/browserify-shim
npm http GET https://registry.npmjs.org/through
npm http GET https://registry.npmjs.org/lodash
npm http 304 https://registry.npmjs.org/browserify-shim
npm http 304 https://registry.npmjs.org/through
npm http 304 https://registry.npmjs.org/lodash
npm http GET https://registry.npmjs.org/browserify
npm http 304 https://registry.npmjs.org/browserify
npm http GET https://registry.npmjs.org/deps-sort
npm http GET https://registry.npmjs.org/shell-quote
npm http GET https://registry.npmjs.org/duplexer
npm http GET https://registry.npmjs.org/stream-combiner
npm http GET https://registry.npmjs.org/concat-stream
npm http GET https://registry.npmjs.org/insert-module-globals
npm http GET https://registry.npmjs.org/syntax-error
npm http GET https://registry.npmjs.org/browser-resolve
npm http GET https://registry.npmjs.org/inherits
npm http GET https://registry.npmjs.org/JSONStream
npm http GET https://registry.npmjs.org/umd
npm http GET https://registry.npmjs.org/parents
npm http GET https://registry.npmjs.org/deep-equal
npm http GET https://registry.npmjs.org/constants-browserify
npm http GET https://registry.npmjs.org/os-browserify
npm http GET https://registry.npmjs.org/console-browserify
npm http GET https://registry.npmjs.org/vm-browserify
npm http GET https://registry.npmjs.org/zlib-browserify
npm http GET https://registry.npmjs.org/http-browserify
npm http GET https://registry.npmjs.org/crypto-browserify
npm http GET https://registry.npmjs.org/util
npm http GET https://registry.npmjs.org/events
npm http GET https://registry.npmjs.org/assert
npm http GET https://registry.npmjs.org/buffer
npm http GET https://registry.npmjs.org/url
npm http GET https://registry.npmjs.org/https-browserify
npm http GET https://registry.npmjs.org/path-browserify
npm http GET https://registry.npmjs.org/querystring-es3/0.2.0
npm http GET https://registry.npmjs.org/stream-browserify
npm http GET https://registry.npmjs.org/string_decoder
npm http GET https://registry.npmjs.org/tty-browserify
npm http GET https://registry.npmjs.org/timers-browserify
npm http GET https://registry.npmjs.org/punycode
npm http GET https://registry.npmjs.org/defined
npm http GET https://registry.npmjs.org/domain-browser
npm http GET https://registry.npmjs.org/derequire
npm http GET https://registry.npmjs.org/commondir/0.0.1
npm http GET https://registry.npmjs.org/shallow-copy/0.0.1
npm http GET https://registry.npmjs.org/subarg/0.0.1
npm http GET https://registry.npmjs.org/resolve
npm http GET https://registry.npmjs.org/glob
npm http GET https://registry.npmjs.org/builtins/0.0.2
npm http GET https://registry.npmjs.org/module-deps
npm http GET https://registry.npmjs.org/browser-pack
npm http 304 https://registry.npmjs.org/stream-combiner
npm http 304 https://registry.npmjs.org/duplexer
npm http 304 https://registry.npmjs.org/deps-sort
npm http 304 https://registry.npmjs.org/concat-stream
npm http 304 https://registry.npmjs.org/syntax-error
npm http 304 https://registry.npmjs.org/JSONStream
npm http 304 https://registry.npmjs.org/insert-module-globals
npm http 304 https://registry.npmjs.org/inherits
npm http 304 https://registry.npmjs.org/shell-quote
npm http 304 https://registry.npmjs.org/constants-browserify
npm http 304 https://registry.npmjs.org/parents
npm http 304 https://registry.npmjs.org/deep-equal
npm http 304 https://registry.npmjs.org/umd
npm http 304 https://registry.npmjs.org/os-browserify
npm http 304 https://registry.npmjs.org/browser-resolve
npm http 304 https://registry.npmjs.org/vm-browserify
npm http 304 https://registry.npmjs.org/zlib-browserify
npm http 304 https://registry.npmjs.org/util
npm http 304 https://registry.npmjs.org/console-browserify
npm http 304 https://registry.npmjs.org/assert
npm http 304 https://registry.npmjs.org/http-browserify
npm http 304 https://registry.npmjs.org/buffer
npm http 304 https://registry.npmjs.org/https-browserify
npm http 304 https://registry.npmjs.org/events
npm http 304 https://registry.npmjs.org/url
npm WARN package.json url@0.7.9 No README.md file found!
npm http 304 https://registry.npmjs.org/string_decoder
npm http 304 https://registry.npmjs.org/crypto-browserify
npm http 304 https://registry.npmjs.org/path-browserify
npm http 304 https://registry.npmjs.org/querystring-es3/0.2.0
npm http 304 https://registry.npmjs.org/punycode
npm http 304 https://registry.npmjs.org/stream-browserify
npm http 304 https://registry.npmjs.org/tty-browserify
npm http 304 https://registry.npmjs.org/timers-browserify
npm http 304 https://registry.npmjs.org/shallow-copy/0.0.1
npm http 304 https://registry.npmjs.org/defined
npm http 304 https://registry.npmjs.org/domain-browser
npm http 304 https://registry.npmjs.org/derequire
npm http 304 https://registry.npmjs.org/subarg/0.0.1
npm http 304 https://registry.npmjs.org/glob
npm http 304 https://registry.npmjs.org/module-deps
npm http 304 https://registry.npmjs.org/commondir/0.0.1
npm http 304 https://registry.npmjs.org/resolve
npm http 304 https://registry.npmjs.org/builtins/0.0.2
npm http 304 https://registry.npmjs.org/browser-pack
npm http GET https://registry.npmjs.org/querystring
npm http GET https://registry.npmjs.org/minimist
npm http GET https://registry.npmjs.org/minimist
npm http GET https://registry.npmjs.org/esprima-fb/3001.1.0-dev-harmony-fb
npm http GET https://registry.npmjs.org/rfile
npm http GET https://registry.npmjs.org/ruglify
npm http GET https://registry.npmjs.org/uglify-js
npm http 304 https://registry.npmjs.org/querystring
npm http 304 https://registry.npmjs.org/minimist
npm http GET https://registry.npmjs.org/util/0.10.2
npm http GET https://registry.npmjs.org/indexof/0.0.1
npm http GET https://registry.npmjs.org/process
npm http 304 https://registry.npmjs.org/minimist
npm http GET https://registry.npmjs.org/tape
npm http 304 https://registry.npmjs.org/uglify-js
npm http GET https://registry.npmjs.org/typedarray
npm http GET https://registry.npmjs.org/readable-stream
npm http 304 https://registry.npmjs.org/indexof/0.0.1
npm http 304 https://registry.npmjs.org/ruglify
npm http 304 https://registry.npmjs.org/esprima-fb/3001.1.0-dev-harmony-fb
npm http 304 https://registry.npmjs.org/util/0.10.2
npm http 304 https://registry.npmjs.org/tape
npm http 304 https://registry.npmjs.org/rfile
npm http 304 https://registry.npmjs.org/process
npm http GET https://registry.npmjs.org/esprima-fb/-/esprima-fb-3001.0001.0000-dev-harmony-fb.tgz
npm http GET https://registry.npmjs.org/lexical-scope
npm http GET https://registry.npmjs.org/resolve/0.6.1
npm http GET https://registry.npmjs.org/combine-source-map
npm http 200 https://registry.npmjs.org/esprima-fb/-/esprima-fb-3001.0001.0000-dev-harmony-fb.tgz
npm http 304 https://registry.npmjs.org/typedarray
npm http GET https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/callsite
npm http 304 https://registry.npmjs.org/minimatch
npm http 304 https://registry.npmjs.org/combine-source-map
npm http 304 https://registry.npmjs.org/resolve/0.6.1
npm http 304 https://registry.npmjs.org/lexical-scope
npm http 304 https://registry.npmjs.org/callsite
npm http GET https://registry.npmjs.org/source-map
npm http GET https://registry.npmjs.org/inline-source-map
npm http GET https://registry.npmjs.org/convert-source-map
npm http GET https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/sigmund
npm http GET https://registry.npmjs.org/jsonify
npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/debuglog/0.0.2
npm http GET https://registry.npmjs.org/detective
npm http 304 https://registry.npmjs.org/sigmund
npm http 304 https://registry.npmjs.org/lru-cache
npm http GET https://registry.npmjs.org/estraverse
npm http GET https://registry.npmjs.org/esprima-six
npm http GET https://registry.npmjs.org/esrefactor
npm http 304 https://registry.npmjs.org/jsonify
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/source-map
npm http 304 https://registry.npmjs.org/convert-source-map
npm http 304 https://registry.npmjs.org/esprima-six
npm http 304 https://registry.npmjs.org/debuglog/0.0.2
npm http 304 https://registry.npmjs.org/estraverse
npm http GET https://registry.npmjs.org/astw
npm http 304 https://registry.npmjs.org/detective
npm http 304 https://registry.npmjs.org/inline-source-map
npm http 304 https://registry.npmjs.org/esrefactor
npm http GET https://registry.npmjs.org/jsonparse/0.0.5
npm http 304 https://registry.npmjs.org/astw
npm http 304 https://registry.npmjs.org/jsonparse/0.0.5
npm http GET https://registry.npmjs.org/esprima
npm http GET https://registry.npmjs.org/escope
npm http GET https://registry.npmjs.org/escodegen
npm http GET https://registry.npmjs.org/uglify-to-browserify
npm http GET https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/amdefine
npm http 304 https://registry.npmjs.org/uglify-to-browserify
npm http 304 https://registry.npmjs.org/esprima
npm http 304 https://registry.npmjs.org/escodegen
npm http 304 https://registry.npmjs.org/amdefine
npm http 304 https://registry.npmjs.org/escope
npm http GET https://registry.npmjs.org/Base64
npm http 304 https://registry.npmjs.org/optimist
npm http GET https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/Base64
npm http 304 https://registry.npmjs.org/wordwrap
npm http GET https://registry.npmjs.org/base64-js
npm http GET https://registry.npmjs.org/ieee754
npm http 304 https://registry.npmjs.org/ieee754
npm http 304 https://registry.npmjs.org/base64-js
npm ERR! EEXIST, mkdir '/home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js'
File exists: /home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js
Move it away, and try again.

npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /home/miner/miner-dashboard
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js
npm ERR! fstream_path /home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/buffer/node_modules/base64-js/LICENSE.MIT
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code EEXIST
npm ERR! errno 47
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23
npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:45:53
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/buffer/node_modules'
npm ERR! error rolling back  grunt-browserify@1.3.1 { [Error: ENOTEMPTY, rmdir '/home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/buffer/node_modules']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/buffer/node_modules' }
npm ERR! Error: invalid version: 3001.0001.0000-dev-harmony-fb
npm ERR!     at validVersion (/usr/lib/nodejs/read-package-json/read-json.js:573:40)
npm ERR!     at final (/usr/lib/nodejs/read-package-json/read-json.js:323:23)
npm ERR!     at /usr/lib/nodejs/read-package-json/read-json.js:139:33
npm ERR!     at cb (/usr/lib/nodejs/slide/lib/async-map.js:48:11)
npm ERR!     at /usr/lib/nodejs/read-package-json/read-json.js:251:40
npm ERR!     at fs.js:268:14
npm ERR!     at /usr/lib/nodejs/graceful-fs/graceful-fs.js:103:5
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/miner/miner-dashboard/npm-debug.log npm

npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /home/miner/miner-dashboard
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! Error: ENOENT, lstat '/home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/derequire/node_modules/esprima-six/test/3rdparty/ext-core-3.0.0.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/miner/miner-dashboard/npm-debug.log npm

npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /home/miner/miner-dashboard
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/derequire/node_modules/esprima-six/test/3rdparty/ext-core-3.0.0.js
npm ERR! fstream_path /home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/derequire/node_modules/esprima-six/test/3rdparty/ext-core-3.0.0.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Bold_Italic.ttf'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/miner/miner-dashboard/npm-debug.log npm

npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /home/miner/miner-dashboard
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Bold_Italic.ttf
npm ERR! fstream_path /home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Bold_Italic.ttf
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/miner/miner-dashboard/npm-debug.log
npm ERR! not ok code 0

node_modules/.bin/grunt compile

miner@miner001:~/miner-dashboard$ node_modules/.bin/grunt compile
>> Local Npm module "grunt-browserify" not found. Is it installed?
>> Local Npm module "grunt-contrib-jshint" not found. Is it installed?
>> Local Npm module "grunt-mocha-test" not found. Is it installed?
Warning: Task "browserify" not found. Use --force to continue.

Aborted due to warnings.

node app

miner@miner001:~/miner-dashboard$ node app

module.js:340
    throw err;
          ^
Error: Cannot find module '../build/compiledTemplates'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/home/miner/miner-dashboard/lib/View.js:8:21)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
miner@miner001:~/miner-dashboard$

I then tried using --force on the second command but still getting errors.

miner@miner001:~/miner-dashboard$ node_modules/.bin/grunt compile --force
>> Local Npm module "grunt-browserify" not found. Is it installed?
>> Local Npm module "grunt-contrib-jshint" not found. Is it installed?
>> Local Npm module "grunt-mocha-test" not found. Is it installed?
Warning: Task "browserify" not found. Used --force, continuing.

Done, but with warnings.
miner@miner001:~/miner-dashboard$

I then tried issuing npm install grunt-browserify and the other two only to get errors.

I apologize if I'm doing something completely newb and wrong.. I thought installing npm, node, and cloning git would get me started quickly.

selaux commented 10 years ago

Can you try removing the node_modules-folder before executing npm install --production.

KoSoVaR commented 10 years ago

Done, assuming you don't want all the output:

npm ERR! Error: invalid version: 3001.0001.0000-dev-harmony-fb
npm ERR!     at validVersion (/usr/lib/nodejs/read-package-json/read-json.js:573:40)
npm ERR!     at final (/usr/lib/nodejs/read-package-json/read-json.js:323:23)
npm ERR!     at /usr/lib/nodejs/read-package-json/read-json.js:139:33
npm ERR!     at cb (/usr/lib/nodejs/slide/lib/async-map.js:48:11)
npm ERR!     at /usr/lib/nodejs/read-package-json/read-json.js:251:40
npm ERR!     at fs.js:268:14
npm ERR!     at /usr/lib/nodejs/graceful-fs/graceful-fs.js:103:5
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/miner/miner-dashboard/npm-debug.log npm

npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /home/miner/miner-dashboard
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! Error: ENOENT, lstat '/home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/README.md'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/miner/miner-dashboard/npm-debug.log npm

npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /home/miner/miner-dashboard
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/README.md
npm ERR! fstream_path /home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/source-map/README.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/index.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/miner/miner-dashboard/npm-debug.log npm

npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /home/miner/miner-dashboard
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/index.js
npm ERR! fstream_path /home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/umd/node_modules/ruglify/node_modules/uglify-js/node_modules/optimist/index.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/derequire/node_modules/esprima-six/test/3rdparty/ext-core-3.0.0.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/miner/miner-dashboard/npm-debug.log npm

npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /home/miner/miner-dashboard
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/derequire/node_modules/esprima-six/test/3rdparty/ext-core-3.0.0.js
npm ERR! fstream_path /home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/derequire/node_modules/esprima-six/test/3rdparty/ext-core-3.0.0.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Bold_Italic.ttf'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://bugs.debian.org/npm>
npm ERR! or use
npm ERR!     reportbug --attach /home/miner/miner-dashboard/npm-debug.log npm

npm ERR! System Linux 3.11.0-18-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /home/miner/miner-dashboard
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.2.18
npm ERR! path /home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Bold_Italic.ttf
npm ERR! fstream_path /home/miner/miner-dashboard/node_modules/grunt-browserify/node_modules/browserify/node_modules/url/node_modules/punycode/vendor/requirejs/dist/fonts/PT-Sans/PT_Sans_Bold_Italic.ttf
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 304 https://registry.npmjs.org/base64-js
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/miner/miner-dashboard/npm-debug.log
npm ERR! not ok code 0
miner@miner001:~/miner-dashboard$
selaux commented 10 years ago

Can you install any other version of grunt-browserify? For example npm install grunt-browserify@1.3.0.

selaux commented 10 years ago

BTW: You could also update your version of npm, which would probably fix the issue as well.

KoSoVaR commented 10 years ago

Can't install that version. I just used default sudo apt-get install npm.

I'll figure out how to get the latest version and report back.

KoSoVaR commented 10 years ago

Followed this https://rtcamp.com/tutorials/nodejs/node-js-npm-install-ubuntu/

reissued npm start

All good.

selaux commented 10 years ago

It would be nice if miner-dashboard would run with the node versions included in Ubuntu versions until the last LTS, so I will leave this open anyways.

KoSoVaR commented 10 years ago

I'm gonna give up for today.. I had it working.. for a few minutes. I removed both directories (my git clone and downloaded master) and just wanted a fresh directory. Rebooted the PC and used git clone, npm start. Fail. Ok, downloaded the master (that's the one it worked in...)

According to the below, node-gyp rebuild is failing, but that command isn't found on the system regardless.

> contextify@0.1.7 install /home/miner/miner-dashboard-master/node_modules/rickshaw/node_modules/d3/node_modules/jsdom/node_modules/contextify
> node-gyp rebuild

Traceback (most recent call last):
  File "/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py", line 18, in <module>
    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/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:337: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.11.0-18-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/miner/miner-dashboard-master/node_modules/rickshaw/node_modules/d3/node_modules/jsdom/node_modules/contextify
gyp ERR! node -v v0.10.26
gyp ERR! node-gyp -v v0.12.2
gyp ERR! not ok
npm ERR! contextify@0.1.7 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.7 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-18-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "--production"
npm ERR! cwd /home/miner/miner-dashboard-master
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/miner/miner-dashboard-master/npm-debug.log
npm ERR! not ok code 0

npm ERR! miner-dashboard@0.2.0 start: `npm install --production && grunt compile && node app`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the miner-dashboard@0.2.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-18-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! cwd /home/miner/miner-dashboard-master
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/miner/miner-dashboard-master/npm-debug.log
npm ERR! not ok code 0
miner@miner001:~/miner-dashboard-master$ node-gyp rebuild
selaux commented 10 years ago

I'm gonna play around with ubuntu 12.04 a bit maybe I can get it to run...

KoSoVaR commented 10 years ago

Just a heads up I'm running Xubuntu 13.10.

I've had it running before .. today .. and previously. Just not sure how.

Thank you sir

selaux commented 10 years ago

A little late, but it's running on Ubuntu 12.04 ... ''' sudo apt-get remove nodejs npm sudo apt-add-repository ppa:chris-lea/node.js sudo apt-get update sudo apt-get install nodejs build-essential ''' Then checkout a clean copy of miner dashboard and do the installation procedure as specified in the README. I will add wiki pages on how to install miner-dashboard on several systems so will be easier in the future.

kenshirothefist commented 10 years ago

I can confirm that installing nodejs from ppa:chris-lea/node.js also fixes issues on ubuntu 13.10 as well.

However, I do get this when starting:

Local Npm module "grunt-contrib-jshint" not found. Is it installed? Local Npm module "grunt-mocha-test" not found. Is it installed?

I tried installing these two via sudo npm install -g grunt-mocha-test sudo npm install -g grunt-contrib-jshint

but same warning about modules not found is still displayed...

anyway, miner-dashboard is working fine ... I guess these two modules aren't crucial?

selaux commented 10 years ago

Nope, these two are modules required for development... You can install them via npm install in the miner-dashboard direcotry if you want, but it's not necessary if you just want to run it.