UNOMP / unified-node-open-mining-portal

Development stopped and is now unsupported. The node.js version is being deprecated in October 2016.
GNU General Public License v2.0
347 stars 395 forks source link

Raspberry pi 4 ARM 64 bit ubuntu 18.04 installation fail #316

Open free1video opened 2 years ago

free1video commented 2 years ago

ubuntu@ubuntu:~$ curl https://raw.githubusercontent.com/creationix/nvm/v0.16.1/install.sh | sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 3535 100 3535 0 0 10042 0 --:--:-- --:--:-- --:--:-- 10042 => nvm is already installed in /home/ubuntu/.nvm, trying to update => error: pathspec 'v0.16.1' did not match any file(s) known to git.

=> Source string already in /home/ubuntu/.bashrc => Close and reopen your terminal to start using nvm ubuntu@ubuntu:~$ source ~/.profile ubuntu@ubuntu:~$ nvm install 0.10.25 Downloading and installing node v0.10.25... Downloading https://nodejs.org/dist/v0.10.25/node-v0.10.25-linux-arm64.tar.gz...

O#-

curl: (22) The requested URL returned error: 404 Binary download from https://nodejs.org/dist/v0.10.25/node-v0.10.25-linux-arm64.tar.gz failed, trying source. grep: /home/ubuntu/.nvm/.cache/bin/node-v0.10.25-linux-arm64/node-v0.10.25-linux-arm64.tar.gz: No such file or directory Provided file to checksum does not exist. Binary download failed, trying source. Local cache found: $NVM_DIR/.cache/src/node-v0.10.25/node-v0.10.25.tar.gz Checksums match! Using existing downloaded archive $NVM_DIR/.cache/src/node-v0.10.25/node-v0.10.25.tar.gz $>./configure --prefix=/home/ubuntu/.nvm/v0.10.25 < Traceback (most recent call last): File "./configure", line 659, in configure_node(output) File "./configure", line 483, in configure_node o['variables']['gcc_version'] = 10 * cc_version[0] + cc_version[1] IndexError: tuple index out of range nvm: install v0.10.25 failed! ubuntu@ubuntu:~$ git clone https://github.com/UNOMP/unified-node-open-mining-portal.git unomp Cloning into 'unomp'... remote: Enumerating objects: 4596, done. remote: Total 4596 (delta 0), reused 0 (delta 0), pack-reused 4596 Receiving objects: 100% (4596/4596), 7.83 MiB | 4.56 MiB/s, done. Resolving deltas: 100% (2350/2350), done. ubuntu@ubuntu:~$ cd unomp ubuntu@ubuntu:~/unomp$ npm update npm WARN notice [SECURITY] mysql has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=mysql - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN notice [SECURITY] dot has the following vulnerabilities: 1 high, 1 moderate. Go here for more details: https://github.com/advisories?query=dot - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN deprecated request@2.69.0: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN notice [SECURITY] bignum has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=bignum - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN deprecated bitcoin@3.0.1: Use npmjs.com/bitcoin-core instead as this package is no longer maintained. npm WARN notice [SECURITY] log4js has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=log4js - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN deprecated log4js@0.6.31: 0.x is no longer supported. Please upgrade to 6.x or higher. npm WARN notice [SECURITY] debug has the following vulnerability: 1 low. Go here for more details: https://github.com/advisories?query=debug - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN notice [SECURITY] qs has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=qs - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN notice [SECURITY] trim-newlines has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=trim-newlines - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN notice [SECURITY] fresh has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=fresh - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN notice [SECURITY] qs has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=qs - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN notice [SECURITY] negotiator has the following vulnerability: 1 high. Go here for more details: https://github.com/advisories?query=negotiator - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN notice [SECURITY] mime has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=mime - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated signalr-client@0.0.17: This is no longer active npm WARN deprecated har-validator@5.1.5: this library is no longer supported npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN notice [SECURITY] request has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=request - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN deprecated request@2.33.0: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN notice [SECURITY] mime has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=mime - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN notice [SECURITY] qs has the following vulnerabilities: 3 high. Go here for more details: https://github.com/advisories?query=qs - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN notice [SECURITY] tunnel-agent has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=tunnel-agent - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN deprecated node-uuid@1.4.8: Use uuid module instead npm WARN notice [SECURITY] hawk has the following vulnerabilities: 2 high. Go here for more details: https://github.com/advisories?query=hawk - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN deprecated hawk@1.0.0: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. npm WARN notice [SECURITY] cryptiles has the following vulnerability: 1 critical. Go here for more details: https://github.com/advisories?query=cryptiles - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN notice [SECURITY] hoek has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=hoek - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN deprecated cryptiles@0.2.2: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated boom@0.4.2: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated sntp@0.2.4: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. npm WARN deprecated hoek@0.9.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN notice [SECURITY] tough-cookie has the following vulnerabilities: 1 high, 1 moderate. Go here for more details: https://github.com/advisories?query=tough-cookie - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN notice [SECURITY] tunnel-agent has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=tunnel-agent - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN deprecated hawk@3.1.3: This module moved to @hapi/hawk. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues. npm WARN deprecated har-validator@2.0.6: this library is no longer supported npm WARN deprecated tough-cookie@2.2.2: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130 npm WARN notice [SECURITY] bl has the following vulnerability: 1 moderate. Go here for more details: https://github.com/advisories?query=bl - Run npm i npm@latest -g to upgrade your npm version, and then npm audit to get more info. npm WARN deprecated hoek@2.16.3: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated boom@2.10.1: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated cryptiles@2.0.5: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time, paid support is available for older versions (hapi.im/commercial). npm WARN deprecated sntp@1.0.9: This module moved to @hapi/sntp. Please make sure to switch over as this distribution is no longer supported and may contain bugs and critical security issues.

bufferutil@4.0.6 install /home/ubuntu/unomp/node_modules/bufferutil node-gyp-build

gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack TypeError: Object.fromEntries is not a function gyp ERR! stack at Object. (/home/ubuntu/.nvm/versions/node/v12.14.0/lib/node_modules/node-gyp/node_modules/@npmcli/fs/lib/fs.js:6:23) gyp ERR! stack at Module._compile (module.js:643:30) gyp ERR! stack at Object.Module._extensions..js (module.js:654:10) gyp ERR! stack at Module.load (module.js:556:32) gyp ERR! stack at tryModuleLoad (module.js:499:12) gyp ERR! stack at Function.Module._load (module.js:491:3) gyp ERR! stack at Module.require (module.js:587:17) gyp ERR! stack at require (internal/module.js:11:18) gyp ERR! stack at Object. (/home/ubuntu/.nvm/versions/node/v12.14.0/lib/node_modules/node-gyp/node_modules/@npmcli/fs/lib/index.js:2:6) gyp ERR! stack at Module._compile (module.js:643:30) gyp ERR! System Linux 5.4.0-1068-raspi gyp ERR! command "/home/ubuntu/.nvm/versions/node/v8.9.4/bin/node" "/home/ubuntu/.nvm/versions/node/v12.14.0/lib/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/ubuntu/unomp/node_modules/bufferutil gyp ERR! node -v v8.9.4 gyp ERR! node-gyp -v v9.1.0 gyp ERR! Node-gyp failed to build your package. gyp ERR! Try to update npm and/or node-gyp and if it does not help file an issue with the package author. npm ERR! code ELIFECYCLE npm ERR! errno 7 npm ERR! bufferutil@4.0.6 install: node-gyp-build npm ERR! Exit status 7 npm ERR! npm ERR! Failed at the bufferutil@4.0.6 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/ubuntu/.npm/_logs/2022-09-03T11_27_22_845Z-debug.log ubuntu@ubuntu:~/unomp$ node -v && npm -v v8.9.4 5.6.0