I want to try out the CLI and I was using the following 2 guides:
Based on these I did the following steps on Ubuntu 22.04.1:
- Install node, npm, nvm
- Install node v14 (npm v6 ← this is automatic ofc)
- npm install -g @ceramicnetwork/cli
- ceramic daemon
I got the following error:
Error message:
/home/ubuntu/.nvm/versions/node/v14.21.2/lib/node_modules/@ceramicnetwork/cli/node_modules/it-parallel/index.js:15
const CustomEvent = globalThis.CustomEvent || Event
^
ReferenceError: Event is not defined
at Object. (/home/ubuntu/.nvm/versions/node/v14.21.2/lib/node_modules/@ceramicnetwork/cli/node_modules/it-parallel/index.js:15:47)
at Module._compile (internal/modules/cjs/loader.js:1085:14)
at Object.Module._extensions…js (internal/modules/cjs/loader.js:1114:10)
at Module.load (internal/modules/cjs/loader.js:950:32)
at Function.Module._load (internal/modules/cjs/loader.js:790:12)
at ModuleWrap. (internal/modules/esm/translators.js:203:29)
at ModuleJob.run (internal/modules/esm/module_job.js:183:25)
at async Loader.import (internal/modules/esm/loader.js:178:24)
at async file:///home/ubuntu/.nvm/versions/node/v14.21.2/lib/node_modules/@ceramicnetwork/cli/bin/ceramic.js:3:1
What is the solution for this?