fairDataSociety / fdp-play

Orchestration CLI for spinning up local development Bee cluster and FDP environment with Docker
BSD 3-Clause "New" or "Revised" License
12 stars 5 forks source link

Not able to use after Node.js update v20.9.0 #106

Open tamas6 opened 1 year ago

tamas6 commented 1 year ago

Any command gives a long log, exactly the .nvm/versions/node/v20.9.0/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3

and in the end:

TypeError: Cannot set property crypto of # which has only a getter at 479 (/Users/t6/.nvm/versions/node/v20.9.0/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3:1308071) at r (/Users/t6/.nvm/versions/node/v20.9.0/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3:1496486) at /Users/t6/.nvm/versions/node/v20.9.0/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3:1497191 at /Users/t6/.nvm/versions/node/v20.9.0/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3:1497414 at /Users/t6/.nvm/versions/node/v20.9.0/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3:1497421 at /Users/t6/.nvm/versions/node/v20.9.0/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3:81 at Object. (/Users/t6/.nvm/versions/node/v20.9.0/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3:237) at Module._compile (node:internal/modules/cjs/loader:1241:14) at Module._extensions..js (node:internal/modules/cjs/loader:1295:10) at Module.load (node:internal/modules/cjs/loader:1091:32)

Node.js v20.9.0

tamas6 commented 1 year ago

Attempt to fix: returning to node v16 start commands (and most) are working but the followings are not fdp-play start + --bee-version --bee-repo --fairos-image --blockchain-image

giving the stated error above

tfius commented 1 year ago

Seems there are issues with fdp-play and latest bee. Can you try previous versions of fdp-play and node 18 ?

tamas6 commented 12 months ago

additional end logs for node v16

TypeError: Cannot read properties of undefined (reading 'length') at i (/usr/local/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3:319856) at Object.t.parseValue (/usr/local/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3:321530) at /usr/local/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3:317496 at Object. (/usr/local/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3:319484) at Generator.next () at /usr/local/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3:314006 at new Promise () at n (/usr/local/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3:313751) at Object.parse (/usr/local/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3:316234) at b.initCommandClasses (/usr/local/lib/node_modules/@fairdatasociety/fdp-play/dist/index.js:3:349971)