$ npm start
> Wikiless@0.1.1 start
> node src/wikiless.js
/home/node/wikiless/src/utils.js:7
const got = require('got')
^
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/node/wikiless/node_modules/got/dist/source/index.js from /home/node/wikiless/src/utils.js not supported.
Instead change the require of index.js in /home/node/wikiless/src/utils.js to a dynamic import() which is available in all CommonJS modules.
at module.exports (/home/node/wikiless/src/utils.js:7:15)
at Object.<anonymous> (/home/node/wikiless/src/wikiless.js:28:36) {
code: 'ERR_REQUIRE_ESM'
}
Node.js v18.17.0
Also, I manually added the entries for express-session and lusca in package.json because otherwise they won't install with npm install
Also, I manually added the entries for
express-session
andlusca
in package.json because otherwise they won't install with npm install