z-classic / z-nomp

z-nomp is mining pool software for Zcash and Zclassic so you can create internet money in your home!
MIT License
291 stars 436 forks source link

Issues running npm update #224

Open clumsyzombie opened 6 years ago

clumsyzombie commented 6 years ago

I am trying to do this setup for the first time and I am trying to get the z-nomp working and installed. I am running it issues with I run the npm update command I get some errors I am not sure to what it points to.

clumsy@ubuntu:~/z-nomp$ npm update npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ENODATA: Cache input stream was empty npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation. npm ERR! code EINTEGRITY npm ERR! errno EINTEGRITY npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/bignum: Integrity verification failed for sha512-0q2FCJCYvsaAka9QvhRiRmz9eDqjYudUKRUUu/qRgQKHN+QSPCQ9UQQJA2/wDlRc3gznKsTWQjL3cs7gxBWhNw== (/home/clumsy/.npm/_cacache/content-v2/sha512/d2/ad/85089098bec68091af50be1462466cfd783aa362e754291514bbfa9181028737e4123c243d510409036ff00e545cde0ce72ac4d64232f772cee0c415a137)

npm ERR! A complete log of this run can be found in: npm ERR! /home/clumsy/.npm/_logs/2017-11-06T02_12_38_042Z-debug.log

Any help would be grateful. I am just doing this for zcash and trying to use it as a learning op.

ayalgul commented 6 years ago

I am running into issues when running npm update, using NVM v7.10.1 I run commands as follows

sudo apt-get install build-essential libsodium-dev npm redis-server git sudo npm install n -g sudo n stable git clone https://github.com/joshuayabut/node-open-mining-portal.git z-nomp cd z-nomp

when I run npm update

I get this error

npm ERR! Linux 3.13.0-24-generic npm ERR! argv "/root/.nvm/v7.10.1/bin/node" "/root/.nvm/v7.10.1/bin/npm" "update" npm ERR! node v7.10.1 npm ERR! npm v4.2.0 npm ERR! code ELIFECYCLE npm ERR! errno 1

npm ERR! equihashverify@0.0.1 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the equihashverify@0.0.1 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the equihashverify 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 information on how to open an issue for this project with: npm ERR! npm bugs equihashverify npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls equihashverify npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /root/.npm/_logs/2017-11-07T00_02_50_928Z-debug.log

Is there a specific version of nvm version 7 I should be using to run an npm update without this issue occuring

thghdbs commented 6 years ago

I confirm this same issue.

Is there a way to roll back to an earlier version of nvm to avoid this issue?