energywebfoundation / origin

Origin is a set of toolkits that together provide a system for issuance and management of Energy Attribute Certificates
https://energyweb.org/technology/ew-origin/
MIT License
104 stars 57 forks source link

Rush update issue #3377

Closed marcelomst closed 1 year ago

marcelomst commented 1 year ago

When doing rush update, it gives me the following error:

...:/mnt/c/Users/Lenovo/Documents/origin$ rush update

Rush Multi-Project Build Tool 5.40.5 - https://rushjs.io Node.js version is 14.21.2 (LTS)

Starting "rush update"

Validating package manager shrinkwrap file.

Found files in the "common/git-hooks" folder. Successfully installed these Git hook scripts: pre-commit

Trying to acquire lock for pnpm-5.18.1 Acquired lock for pnpm-5.18.1 Found pnpm version 5.18.1 in /home/marcelo/.rush/node-v14.21.2/pnpm-5.18.1

Symlinking "/mnt/c/Users/Lenovo/Documents/origin/common/temp/pnpm-local" --> "/home/marcelo/.rush/node-v14.21.2/pnpm-5.18.1" Copying /mnt/c/Users/Lenovo/Documents/origin/common/config/rush/.npmrc --> /mnt/c/Users/Lenovo/Documents/origin/common/temp/.npmrc Updating /mnt/c/Users/Lenovo/Documents/origin/common/temp/pnpmfile.js

Updating temp projects in /mnt/c/Users/Lenovo/Documents/origin/common/temp/projects

Your shrinkwrap file is missing the project "@energyweb/issuer".

Your shrinkwrap file references a project "@rush-temp/issuer-irec-api" which no longer exists.

Finished creating temporary modules (0.21 seconds)

The shrinkwrap file contains the following issues: Missing dependency "@energyweb/utils-general" (11.2.1) required by "@energyweb/issuer" Missing dependency "@ethersproject/abi" (5.3.1) required by "@energyweb/issuer" Missing dependency "@ethersproject/abstract-signer" (5.3.0) required by "@energyweb/issuer" Missing dependency "@ethersproject/contracts" (5.3.0) required by "@energyweb/issuer" Missing dependency "@ethersproject/providers" (5.3.1) required by "@energyweb/issuer" Missing dependency "@ethersproject/wallet" (5.3.0) required by "@energyweb/issuer" Missing dependency "@openzeppelin/contracts" (4.4.2) required by "@energyweb/issuer" Missing dependency "@openzeppelin/contracts-upgradeable" (4.4.2) required by "@energyweb/issuer" Missing dependency "@openzeppelin/truffle-upgrades" (1.11.0) required by "@energyweb/issuer" Missing dependency "@typechain/ethers-v5" (7.0.1) required by "@energyweb/issuer" Missing dependency "@types/chai" (4.3.0) required by "@energyweb/issuer" Missing dependency "@types/dotenv" (6.1.1) required by "@energyweb/issuer" Missing dependency "@types/mocha" (9.0.0) required by "@energyweb/issuer" Missing dependency "@types/node" (14.18.10) required by "@energyweb/issuer" Missing dependency "@types/supertest" (2.0.11) required by "@energyweb/issuer" Missing dependency "chai" (4.3.4) required by "@energyweb/issuer" Missing dependency "dotenv" (10.0.0) required by "@energyweb/issuer" Missing dependency "ethers" (5.3.1) required by "@energyweb/issuer" Missing dependency "ethlint" (1.2.5) required by "@energyweb/issuer" Missing dependency "ew-precise-proofs-js" (1.1.0) required by "@energyweb/issuer" Missing dependency "ganache-cli" (6.12.2) required by "@energyweb/issuer" Missing dependency "mocha" (9.1.3) required by "@energyweb/issuer" Missing dependency "moment" (2.29.2) required by "@energyweb/issuer" Missing dependency "shx" (0.3.3) required by "@energyweb/issuer" Missing dependency "solc" (0.8.4) required by "@energyweb/issuer" Missing dependency "solc-0.8" (npm:solc@0.8.4) required by "@energyweb/issuer" Missing dependency "solidity-docgen" (0.5.16) required by "@energyweb/issuer" Missing dependency "truffle" (5.4.26) required by "@energyweb/issuer" Missing dependency "truffle-typings" (1.0.8) required by "@energyweb/issuer" Missing dependency "ts-node" (9.1.1) required by "@energyweb/issuer" Missing dependency "typechain" (6.1.0) required by "@energyweb/issuer" Missing dependency "typescript" (4.5.4) required by "@energyweb/issuer" Missing dependency "winston" (3.3.3) required by "@energyweb/issuer" Missing dependency "winston-transport" (4.4.1) required by "@energyweb/issuer"

Deleting files from /mnt/c/Users/Lenovo/Documents/origin/common/temp/node_modules

Running "pnpm install" in /mnt/c/Users/Lenovo/Documents/origin/common/temp

Using hooks from: /mnt/c/Users/Lenovo/Documents/origin/common/temp/pnpmfile.js readPackage hook is declared. Manifests of dependencies might get overridden  WARN  deprecated ganache-cli@6.12.2: ganache-cli is now ganache; visit https://trfl.io/g7 for details Downloading registry.npmjs.org/ganache-cli/6.12.2: 5.8 MB/5.8 MB, done Downloading registry.npmjs.org/solc/0.8.4: 7.25 MB/7.25 MB, done  WARN  @nestjs/common@8.1.1 requires a peer of rxjs@^7.1.0 but none was installed.  WARN  @rush-temp/issuer: @typechain/ethers-v5@7.0.1 requires a peer of typechain@^5.0.0 but version 6.1.0 was installed.  WARN  @rush-temp/issuer: @typechain/ethers-v5@7.0.1 requires a peer of @ethersproject/bytes@^5.0.0 but none was installed.  WARN  @rush-temp/issuer > ethlint: solium-plugin-security@0.1.1 requires a peer of solium@^1.0.0 but none was installed.  WARN  @rush-temp/issuer > truffle > @truffle/preserve-to-buckets > @textile/hub > @textile/buckets: @improbable-eng/grpc-web@0.13.0 requires a peer of google-protobuf@^3.2.0 but none was installed. Packages: +1556 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++  WARN  9 other warnings Packages are hard linked from the content-addressable store to the virtual store. Content-addressable store is at: /mnt/c/Users/Lenovo/Documents/origin/common/temp/pnpm-store/v3 Virtual store is at: node_modules/.pnpm Downloading registry.npmjs.org/truffle/5.4.26: 11 MB/11 MB, done Downloading registry.npmjs.org/@truffle/contract/4.6.14: 10.7 MB/10.7 MB, done Downloading registry.npmjs.org/typescript/4.5.4: 11.3 MB/11.3 MB, done Downloading registry.npmjs.org/solc/0.6.12: 6.63 MB/6.63 MB, done Progress: resolved 1559, reused 415, downloaded 1144, added 1556, done node_modules/.pnpm/iso-constants@0.1.2/node_modules/iso-constants: Running install script, done in 336ms node_modules/.pnpm/es5-ext@0.10.62/node_modules/es5-ext: Running postinstall script, done in 446ms node_modules/.pnpm/@apollo/protobufjs@1.2.6/node_modules/@apollo/protobufjs: Running postinstall script, done in 356ms node_modules/.pnpm/@apollo/protobufjs@1.2.7/node_modules/@apollo/protobufjs: Running postinstall script, done in 465ms node_modules/.pnpm/protobufjs@6.11.3/node_modules/protobufjs: Running postinstall script, done in 320ms node_modules/.pnpm/bufferutil@4.0.7/node_modules/bufferutil: Running install script, done in 961ms node_modules/.pnpm/keccak@3.0.3/node_modules/keccak: Running install script, done in 1s node_modules/.pnpm/leveldown@5.0.2/node_modules/leveldown: Running install script, done in 956ms node_modules/.pnpm/secp256k1@4.0.3/node_modules/secp256k1: Running install script, done in 974ms node_modules/.pnpm/sqlite3@4.2.0/node_modules/sqlite3: Running install script, failed in 24.3s .../sqlite3@4.2.0/node_modules/sqlite3 install$ node-pre-gyp install --fallback-to-build │ node-pre-gyp info it worked if it ends with ok │ node-pre-gyp info using node-pre-gyp@0.11.0 │ node-pre-gyp info using node@14.21.2 | linux | x64 │ node-pre-gyp WARN Using request for node-pre-gyp https download │ node-pre-gyp info check checked for "/mnt/c/Users/Lenovo/Documents/origin/common/temp/node_modules/.pnpm/sqlite3@4.2.0/ │ node-pre-gyp http GET https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v83-linux-x64.tar.gz │ node-pre-gyp http 403 https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v83-linux-x64.tar.gz │ node-pre-gyp WARN Tried to download(403): https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v83-linux-x64
│ node-pre-gyp WARN Pre-built binaries not found for sqlite3@4.2.0 and node@14.21.2 (node-v83 ABI, glibc) (falling back t
│ node-pre-gyp http 403 status code downloading tarball https://mapbox-node-binary.s3.amazonaws.com/sqlite3/v4.2.0/node-v
│ gyp info it worked if it ends with ok │ gyp info using node-gyp@7.1.2 │ gyp info using node@14.21.2 | linux | x64 │ gyp info ok │ gyp info it worked if it ends with ok │ gyp info using node-gyp@7.1.2 │ gyp info using node@14.21.2 | linux | x64 │ gyp info find Python using Python version 3.8.5 found at "/usr/bin/python3" │ gyp info spawn /usr/bin/python3 │ gyp info spawn args [ │ gyp info spawn args '/home/marcelo/.rush/node-v14.21.2/pnpm-5.18.1/node_modules/pnpm/dist/node_modules/node-gyp/gyp/g
│ gyp info spawn args 'binding.gyp', │ gyp info spawn args '-f', │ gyp info spawn args 'make', │ gyp info spawn args '-I', │ gyp info spawn args '/mnt/c/Users/Lenovo/Documents/origin/common/temp/node_modules/.pnpm/sqlite3@4.2.0/node_modules/s
│ gyp info spawn args '-I', │ gyp info spawn args '/home/marcelo/.rush/node-v14.21.2/pnpm-5.18.1/node_modules/pnpm/dist/node_modules/node-gyp/addon
│ gyp info spawn args '-I', │ gyp info spawn args '/home/marcelo/.cache/node-gyp/14.21.2/include/node/common.gypi', │ gyp info spawn args '-Dlibrary=shared_library', │ gyp info spawn args '-Dvisibility=default', │ gyp info spawn args '-Dnode_root_dir=/home/marcelo/.cache/node-gyp/14.21.2', │ gyp info spawn args '-Dnode_gyp_dir=/home/marcelo/.rush/node-v14.21.2/pnpm-5.18.1/node_modules/pnpm/dist/node_modules
│ gyp info spawn args '-Dnode_lib_file=/home/marcelo/.cache/node-gyp/14.21.2/<(target_arch)/node.lib', │ gyp info spawn args '-Dmodule_root_dir=/mnt/c/Users/Lenovo/Documents/origin/common/temp/node_modules/.pnpm/sqlite3@4.
│ gyp info spawn args '-Dnode_engine=v8', │ gyp info spawn args '--depth=.', │ gyp info spawn args '--no-parallel', │ gyp info spawn args '--generator-output', │ gyp info spawn args 'build', │ gyp info spawn args '-Goutput_dir=.' │ gyp info spawn args ] │ internal/modules/cjs/loader.js:905 │ throw err; │ ^ │ Error: Cannot find module 'nan' │ Require stack: │ - /mnt/c/Users/Lenovo/Documents/origin/common/temp/node_modules/.pnpm/sqlite3@4.2.0/node_modules/sqlite3/[eval] │ at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15) │ at Function.Module._load (internal/modules/cjs/loader.js:746:27) │ at Module.require (internal/modules/cjs/loader.js:974:19) │ at require (internal/modules/cjs/helpers.js:101:18) │ at [eval]:1:1 │ at Script.runInThisContext (vm.js:134:12) │ at Object.runInThisContext (vm.js:310:38) │ at internal/process/execution.js:81:19 │ at [eval]-wrapper:6:22 │ at evalScript (internal/process/execution.js:80:60) { │ code: 'MODULE_NOT_FOUND', │ requireStack: [ │ '/mnt/c/Users/Lenovo/Documents/origin/common/temp/node_modules/.pnpm/sqlite3@4.2.0/node_modules/sqlite3/[eval]'
│ ] │ } │ gyp: Call to 'node -e "require('nan')"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
│ gyp ERR! configure error │ gyp ERR! stack Error: gyp failed with exit code: 1 │ gyp ERR! stack at ChildProcess.onCpExit (/home/marcelo/.rush/node-v14.21.2/pnpm-5.18.1/nodemodules/pnpm/dist/node
│ gyp ERR! stack at ChildProcess.emit (events.js:400:28) │ gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:285:12) │ gyp ERR! System Linux 5.15.79.1-microsoft-standard-WSL2 │ gyp ERR! command "/home/marcelo/.nvm/versions/node/v14.21.2/bin/node" "/home/marcelo/.rush/node-v14.21.2/pnpm-5.18.1/no
│ gyp ERR! cwd /mnt/c/Users/Lenovo/Documents/origin/common/temp/node_modules/.pnpm/sqlite3@4.2.0/node_modules/sqlite3
│ gyp ERR! node -v v14.21.2 │ gyp ERR! node-gyp -v v7.1.2 │ gyp ERR! not ok │ node-pre-gyp ERR! build error │ node-pre-gyp ERR! stack Error: Failed to execute '/home/marcelo/.nvm/versions/node/v14.21.2/bin/node /home/marcelo/.rus
│ node-pre-gyp ERR! stack at ChildProcess. (/mnt/c/Users/Lenovo/Documents/origin/common/temp/node_modules/
│ node-pre-gyp ERR! stack at ChildProcess.emit (events.js:400:28) │ node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1088:16) │ node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:296:5) │ node-pre-gyp ERR! System Linux 5.15.79.1-microsoft-standard-WSL2 │ node-pre-gyp ERR! command "/home/marcelo/.nvm/versions/node/v14.21.2/bin/node" "/mnt/c/Users/Lenovo/Documents/origin/co
│ node-pre-gyp ERR! cwd /mnt/c/Users/Lenovo/Documents/origin/common/temp/node_modules/.pnpm/sqlite3@4.2.0/node_modules/sq
│ node-pre-gyp ERR! node -v v14.21.2 │ node-pre-gyp ERR! node-pre-gyp -v v0.11.0 │ node-pre-gyp ERR! not ok │ Failed to execute '/home/marcelo/.nvm/versions/node/v14.21.2/bin/node /home/marcelo/.rush/node-v14.21.2/pnpm-5.18.1/nod
└─ Failed in 24.3s node_modules/.pnpm/tiny-secp256k1@1.1.6/node_modules/tiny-secp256k1: Running install script, done in 4.2s node_modules/.pnpm/ursa-optional@0.10.2/node_modules/ursa-optional: Running install script, done in 3.1s node_modules/.pnpm/web3-bzz@1.5.3/node_modules/web3-bzz: Running postinstall script, done in 80ms node_modules/.pnpm/web3-bzz@1.8.2/node_modules/web3-bzz: Running postinstall script, done in 73ms node_modules/.pnpm/utf-8-validate@5.0.10/node_modules/utf-8-validate: Running install script, done in 833ms  ERROR  Command failed with exit code 1.

The command failed: /mnt/c/Users/Lenovo/Documents/origin/common/temp/pnpm-local/node_modules/.bin/pnpm install --store /mnt/c/Users/Lenovo/Documents/origin/common/temp/pnpm-store --no-prefer-frozen-lockfile ERROR: Error: The command failed with exit code 1


The rush.json doc is : /**

marcelomst commented 1 year ago

I was finally able to run the rush update by following the directions at: https://rushjs.io/pages/advanced/incremental_builds/. The ticket also helped me: https://github.com/energywebfoundation/origin/issues/3342