danielkellyio/awake-template

Error: Cannot find module 'esm'

Opened this issue · 0 comments

hello! I am trying to install Awake locally on my machine, but after installing all dependencies, I can't make it run, receiving the error message below:

> nuxtlify@1.0.0 dev
> npm run before-build && nuxt -o && npm run after-build


> nuxtlify@1.0.0 before-build
> node -r esm ./build-tools/beforeBuild.js

node:internal/modules/cjs/loader:998
  throw err;
  ^

Error: Cannot find module 'esm'
Require stack:
- internal/preload
    at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
    at Module._load (node:internal/modules/cjs/loader:841:27)
    at Module.require (node:internal/modules/cjs/loader:1061:19)
    at Module._preloadModules (node:internal/modules/cjs/loader:1336:12)
    at loadPreloadModules (node:internal/process/pre_execution:597:5)
    at prepareMainThreadExecution (node:internal/process/pre_execution:104:3)
    at node:internal/main/run_main_module:10:1 {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ 'internal/preload' ]
}

Node.js v18.11.0

Node installed properly. Could you let me know what is missing? Thanks in advance!