Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'ejs' #2

Open
fullstackwebdev opened this issue Feb 24, 2022 · 1 comment
Open

Error: Cannot find module 'ejs' #2

fullstackwebdev opened this issue Feb 24, 2022 · 1 comment

Comments

@fullstackwebdev
Copy link

$ npx vue create frontend --preset okami101/vuetify-admin-preset

  • all defaults
yarn serve
yarn run v1.22.17
$ vue-cli-service serve
 ERROR  Error: Cannot find module 'ejs'
        Require stack:
        - /home/[HOMEDIR]/tmp/frontend/node_modules/vue-cli-plugin-vuetify-admin/commands/make.js
        - /home/[HOMEDIR]/tmp/frontend/node_modules/vue-cli-plugin-vuetify-admin/index.js
        - /home/[HOMEDIR]/tmp/frontend/node_modules/@vue/cli-service/lib/Service.js
        - /home/[HOMEDIR]/tmp/frontend/node_modules/@vue/cli-service/bin/vue-cli-service.js
Error: Cannot find module 'ejs'
Require stack:
- /home/[HOMEDIR]/tmp/frontend/node_modules/vue-cli-plugin-vuetify-admin/commands/make.js
- /home/[HOMEDIR]/tmp/frontend/node_modules/vue-cli-plugin-vuetify-admin/index.js
- /home/[HOMEDIR]/tmp/frontend/node_modules/@vue/cli-service/lib/Service.js
- /home/[HOMEDIR]/tmp/frontend/node_modules/@vue/cli-service/bin/vue-cli-service.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:101:18)
    at Object.<anonymous> (/home/[HOMEDIR]/tmp/frontend/node_modules/vue-cli-plugin-vuetify-admin/commands/make.js:4:13)
    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 Module.require (internal/modules/cjs/loader.js:974:19)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

fix ?

yarn add ejs

@chawlajay
Copy link

try this...

  1. yarn remove ejs (if you already executed 'yarn add ejs')
  2. npm i ejs --force --save
  3. check your package.json file, it must show dependency array or object having ejs in mentioned in it with version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants