cazala / coin-hive-stratum

use CoinHive's JavaScript miner on any stratum pool
http://npmjs.com/package/coin-hive-stratum
417 stars 461 forks source link

Failed to install #124

Closed jonese1234 closed 6 years ago

jonese1234 commented 6 years ago
npm install -g coin-hive-stratum
npm http GET https://registry.npmjs.org/coin-hive-stratum
npm http 304 https://registry.npmjs.org/coin-hive-stratum
npm http GET https://registry.npmjs.org/basic-auth
npm http GET https://registry.npmjs.org/minimist
npm http GET https://registry.npmjs.org/types/ws
npm http GET https://registry.npmjs.org/pmx
npm http GET https://registry.npmjs.org/moment
npm http GET https://registry.npmjs.org/typescript
npm http GET https://registry.npmjs.org/uuid
npm http GET https://registry.npmjs.org/watch
npm http GET https://registry.npmjs.org/ws
npm http GET https://registry.npmjs.org/types/node
npm http 304 https://registry.npmjs.org/minimist
npm http 304 https://registry.npmjs.org/moment
npm http 304 https://registry.npmjs.org/pmx
npm http 304 https://registry.npmjs.org/typescript
npm http 304 https://registry.npmjs.org/uuid
npm http 304 https://registry.npmjs.org/watch
npm http 304 https://registry.npmjs.org/ws
npm http 304 https://registry.npmjs.org/basic-auth
npm http 404 https://registry.npmjs.org/types/node
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR!     at next (/usr/share/npm/lib/cache.js:687:35)
npm ERR!     at /usr/share/npm/lib/cache.js:675:5
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7)
npm ERR!     at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 2.6.32-042stab123.9
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "coin-hive-stratum"
npm ERR! cwd /root
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! type non_object_property_load
npm http 404 https://registry.npmjs.org/types/ws
npm ERR! TypeError: Cannot read property 'latest' of undefined
npm ERR!     at next (/usr/share/npm/lib/cache.js:687:35)
npm ERR!     at /usr/share/npm/lib/cache.js:675:5
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:142:7)
npm ERR!     at /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <npm-@googlegroups.com>

npm ERR! System Linux 2.6.32-042stab123.9
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "coin-hive-stratum"
npm ERR! cwd /root
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! type non_object_property_load
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /root/npm-debug.log
npm ERR! not ok code 0

It just fails to install

adamdupuis commented 6 years ago

If I'm reading this correctly you are using Node.js v0.10.25? Try running node -v. I am on Node v8.9.1 currently.

jonese1234 commented 6 years ago

Yes that work! thank you