hashgraph / guardian

The Guardian is an innovative open-source platform that streamlines the creation, management, and verification of digital environmental assets. It leverages a customizable Policy Workflow Engine and Web3 technology to ensure transparent and fraud-proof operations, making it a key tool for transforming sustainability practices and carbon markets.
Apache License 2.0
105 stars 133 forks source link

ui-service npm install failing at did-sdk-js@0.0.1 #17

Closed gavinerasmus closed 3 years ago

gavinerasmus commented 3 years ago

ui-service npm install failing at did-sdk-js@0.0.1.

To Reproduce Steps to reproduce the behavior: run "npm install" in the ui-service folder. Install fails. OR run "npm install did-sdk-js@git+https://github.com/EnvisionBlockchain/did-sdk-js.git" and it also fails.

Expected behavior To install.

Log 0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli '/Users/gavinerasmus/.nvm/versions/node/v14.18.1/bin/node', 1 verbose cli '/Users/gavinerasmus/.nvm/versions/node/v14.18.1/bin/npm', 1 verbose cli 'install', 1 verbose cli 'did-sdk-js@git+https://github.com/EnvisionBlockchain/did-sdk-js.git' 1 verbose cli ] 2 info using npm@6.14.15 3 info using node@v14.18.1 4 verbose npm-session ac12a5ea8f3bed07 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 verbose prepareGitDep undefined: installing devDeps and running prepare script. 8 error prepareGitDep 1> 8 error prepareGitDep > protobufjs@6.11.2 postinstall /Users/gavinerasmus/.npm/_cacache/tmp/git-clone-49a723a2/node_modules/protobufjs 8 error prepareGitDep > node scripts/postinstall 8 error prepareGitDep 8 error prepareGitDep 8 error prepareGitDep > nodemon@2.0.14 postinstall /Users/gavinerasmus/.npm/_cacache/tmp/git-clone-49a723a2/node_modules/nodemon 8 error prepareGitDep > node bin/postinstall || exit 0 8 error prepareGitDep 8 error prepareGitDep 8 error prepareGitDep > did-sdk-js@0.0.1 prepare /Users/gavinerasmus/.npm/_cacache/tmp/git-clone-49a723a2 8 error prepareGitDep > npm run build 8 error prepareGitDep 8 error prepareGitDep 8 error prepareGitDep > did-sdk-js@0.0.1 build /Users/gavinerasmus/.npm/_cacache/tmp/git-clone-49a723a2 8 error prepareGitDep > tsc 8 error prepareGitDep 8 error prepareGitDep ../../../../node_modules/@types/express-serve-static-core/index.d.ts(505,18): error TS2430: Interface 'Response' incorrectly extends interface 'ServerResponse'. 8 error prepareGitDep Property 'req' is optional in type 'Response' but required in type 'ServerResponse'. 9 error prepareGitDep 2> npm WARN install Usage of the --dev option is deprecated. Use --also=dev instead. 9 error prepareGitDep npm WARN prepublish-on-install As of npm@5, prepublish scripts are deprecated. 9 error prepareGitDep npm WARN prepublish-on-install Use prepare for build steps and prepublishOnly for upload-only. 9 error prepareGitDep npm WARN prepublish-on-install See the deprecation note in npm help scripts for more information. 9 error prepareGitDep npm ERR! code ELIFECYCLE 9 error prepareGitDep npm ERR! errno 2 9 error prepareGitDep npm ERR! did-sdk-js@0.0.1 build: tsc 9 error prepareGitDep npm ERR! Exit status 2 9 error prepareGitDep npm ERR! 9 error prepareGitDep npm ERR! Failed at the did-sdk-js@0.0.1 build script. 9 error prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 9 error prepareGitDep 9 error prepareGitDep npm ERR! A complete log of this run can be found in: 9 error prepareGitDep npm ERR! /Users/gavinerasmus/.npm/_logs/2021-10-20T07_22_08_510Z-debug.log 9 error prepareGitDep npm ERR! code ELIFECYCLE 9 error prepareGitDep npm ERR! errno 2 9 error prepareGitDep npm ERR! did-sdk-js@0.0.1 prepare: npm run build 9 error prepareGitDep npm ERR! Exit status 2 9 error prepareGitDep npm ERR! 9 error prepareGitDep npm ERR! Failed at the did-sdk-js@0.0.1 prepare script. 9 error prepareGitDep npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 9 error prepareGitDep 9 error prepareGitDep npm ERR! A complete log of this run can be found in: 9 error prepareGitDep npm ERR! /Users/gavinerasmus/.npm/_logs/2021-10-20T07_22_08_585Z-debug.log 10 silly fetchPackageMetaData error for did-sdk-js@git+https://github.com/EnvisionBlockchain/did-sdk-js.git premature close 11 timing stage:rollbackFailedOptional Completed in 1ms 12 timing stage:runTopLevelLifecycles Completed in 11436ms 13 verbose stack Error: premature close 13 verbose stack at PassThrough.onclose (/Users/gavinerasmus/.nvm/versions/node/v14.18.1/lib/node_modules/npm/node_modules/end-of-stream/index.js:47:67) 13 verbose stack at PassThrough.emit (events.js:412:35) 13 verbose stack at emitCloseNT (internal/streams/destroy.js:87:10) 13 verbose stack at processTicksAndRejections (internal/process/task_queues.js:81:21) 14 verbose cwd /Users/gavinerasmus/Development/projects/hedera/guardian/ui-service 15 verbose Darwin 20.6.0 16 verbose argv "/Users/gavinerasmus/.nvm/versions/node/v14.18.1/bin/node" "/Users/gavinerasmus/.nvm/versions/node/v14.18.1/bin/npm" "install" "did-sdk-js@git+https://github.com/EnvisionBlockchain/did-sdk-js.git" 17 verbose node v14.18.1 18 verbose npm v6.14.15 19 error premature close 20 verbose exit [ 1, true ]

Desktop (please complete the following information):

gavinerasmus commented 3 years ago

Closed in error.

gavinerasmus commented 3 years ago

Resolved by running npm install in vc-modules directory and all other high level directories (interfaces).