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 missing module after fresh git clone + npm instal + npm run docs:dev #228

Open
rarcif opened this issue Jul 3, 2022 · 1 comment
Assignees

Comments

@rarcif
Copy link
Contributor

rarcif commented Jul 3, 2022

error missing module after fresh git clone + npm instal + npm run docs:dev

ricardoarcifa@MTMAC0054 in ~/Desktop/Crypto.pay/docs/cronos-docs (git)-[master]- > npm run docs:dev

[email protected] docs:dev
vuepress dev docs

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

Error: Cannot find module './templates.js'
Require stack:

  • /Users/ricardoarcifa/Desktop/Crypto.pay/docs/cronos-docs/node_modules/chalk/index.js
  • /Users/ricardoarcifa/Desktop/Crypto.pay/docs/cronos-docs/node_modules/@vuepress/shared-utils/lib/datatypes.js
  • /Users/ricardoarcifa/Desktop/Crypto.pay/docs/cronos-docs/node_modules/@vuepress/shared-utils/lib/index.js
  • /Users/ricardoarcifa/Desktop/Crypto.pay/docs/cronos-docs/node_modules/vuepress/lib/checkEnv.js
  • /Users/ricardoarcifa/Desktop/Crypto.pay/docs/cronos-docs/node_modules/vuepress/cli.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object. (/Users/ricardoarcifa/Desktop/Crypto.pay/docs/cronos-docs/node_modules/chalk/index.js:6:18)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/Users/ricardoarcifa/Desktop/Crypto.pay/docs/cronos-docs/node_modules/chalk/index.js',
    '/Users/ricardoarcifa/Desktop/Crypto.pay/docs/cronos-docs/node_modules/@vuepress/shared-utils/lib/datatypes.js',
    '/Users/ricardoarcifa/Desktop/Crypto.pay/docs/cronos-docs/node_modules/@vuepress/shared-utils/lib/index.js',
    '/Users/ricardoarcifa/Desktop/Crypto.pay/docs/cronos-docs/node_modules/vuepress/lib/checkEnv.js',
    '/Users/ricardoarcifa/Desktop/Crypto.pay/docs/cronos-docs/node_modules/vuepress/cli.js'
    ]
    }
@rarcif
Copy link
Contributor Author

rarcif commented Jul 3, 2022

@cdc-william I was going to create a fix but wanted to doublecheck with you

Fix is to remove lock file and node_module and create clean modules.

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