When running 'yarn generate' on windows times error "Cannot find modu… #951
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…le '/D:\IdeaProjects\ dolphinscheduler.com \config\docs\docs1-2-0.js" Delete '/'
PS D:\IdeaProjects\dolphinscheduler-website> yarn generate
yarn run v1.22.19
$ node ./scripts/generate
node:internal/modules/cjs/loader:1137
throw err;
^
Error: Cannot find module '/D:\IdeaProjects\dolphinscheduler-website\config\docs\docs1-2-0.js'
Require stack:
at Module._resolveFilename (node:internal/modules/cjs/loader:1134:15)
at Module._load (node:internal/modules/cjs/loader:975:27)
at Module.require (node:internal/modules/cjs/loader:1225:19)
at require (node:internal/modules/helpers:177:18)
at D:\IdeaProjects\dolphinscheduler-website\scripts\generate_docs.js:254:25
at Array.forEach ()
at parseDocsMenu (D:\IdeaProjects\dolphinscheduler-website\scripts\generate_docs.js:250:8)
at generate (D:\IdeaProjects\dolphinscheduler-website\scripts\generate.js:15:3)
at Object. (D:\IdeaProjects\dolphinscheduler-website\scripts\generate.js:23:1)
at Module._compile (node:internal/modules/cjs/loader:1356:14) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'D:\IdeaProjects\dolphinscheduler-website\scripts\generate_docs.js',
'D:\IdeaProjects\dolphinscheduler-website\scripts\generate.js'
]
}
Node.js v18.19.0
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
need delete generate_docs.js:254:25 '/'