ceramic / ceramic

Desktop web apps with Common Lisp
http://ceramic.github.io/
376 stars 28 forks source link

Ceramic Daemon StartUp Issue on Ubuntu 20.10 #63

Open gokulgaze opened 3 years ago

gokulgaze commented 3 years ago

Dear Ceramic Team,

I am not able to initialise the Ceramic Daemon from Ubuntu 20.10 machine due to the following error. Could you please guide me to fix this issue.

`ceramic daemon internal/modules/cjs/loader.js:1160 throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath); ^

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/semiott/.nvm/versions/node/v13.6.0/lib/node_modules/@ceramicnetwork/cli/node_modules/nanoid/index.js require() of ES modules is not supported. require() of /home/semiott/.nvm/versions/node/v13.6.0/lib/node_modules/@ceramicnetwork/cli/node_modules/nanoid/index.js from /home/semiott/.nvm/versions/node/v13.6.0/lib/node_modules/@ceramicnetwork/cli/node_modules/rpc-utils/dist/rpc-utils.cjs.development.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules. Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/semiott/.nvm/versions/node/v13.6.0/lib/node_modules/@ceramicnetwork/cli/node_modules/nanoid/package.json.

at Object.Module._extensions..js (internal/modules/cjs/loader.js:1160:13)
at Module.load (internal/modules/cjs/loader.js:993:32)
at Function.Module._load (internal/modules/cjs/loader.js:892:14)
at Module.require (internal/modules/cjs/loader.js:1033:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/home/semiott/.nvm/versions/node/v13.6.0/lib/node_modules/@ceramicnetwork/cli/node_modules/rpc-utils/dist/rpc-utils.cjs.development.js:5:14)
at Module._compile (internal/modules/cjs/loader.js:1144:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1164:10)
at Module.load (internal/modules/cjs/loader.js:993:32)
at Function.Module._load (internal/modules/cjs/loader.js:892:14) {

code: 'ERR_REQUIRE_ESM' `