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

运行指令yarn docs:dev报错 #1623

Closed
LLMaxN opened this issue Dec 24, 2024 · 1 comment
Closed

运行指令yarn docs:dev报错 #1623

LLMaxN opened this issue Dec 24, 2024 · 1 comment

Comments

@LLMaxN
Copy link

LLMaxN commented Dec 24, 2024

Description

运行yarn docs:dev指令提示
yarn run v1.22.22
$ vuepress dev docs
error Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@vuepress/bundler-vite' imported from C:\space\site\vuepress-starter\docs.vuepress\config.js.673ae524.mjs
at packageResolve (node:internal/modules/esm/resolve:857:9)
at moduleResolve (node:internal/modules/esm/resolve:926:18)
at defaultResolve (node:internal/modules/esm/resolve:1056:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:654:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:603:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:586:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:242:38)
at ModuleJob._link (node:internal/modules/esm/module_job:135:49)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Reproduction

yarn docs:dev

Used Package Manager

npm

System Info

yarn run v1.22.22
$ vuepress dev docs
error Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@vuepress/bundler-vite' imported from C:\space\site\vuepress-starter\docs\.vuepress\config.js.673ae524.mjs
    at packageResolve (node:internal/modules/esm/resolve:857:9)
    at moduleResolve (node:internal/modules/esm/resolve:926:18)
    at defaultResolve (node:internal/modules/esm/resolve:1056:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:654:12)
    at #cachedDefaultResolve (node:internal/modules/esm/loader:603:25)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:586:38)
    at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:242:38)
    at ModuleJob._link (node:internal/modules/esm/module_job:135:49)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@Mister-Hope
Copy link
Member

Mister-Hope commented Dec 24, 2024

Then install one. Also yarn 1 is NOT supported

@Mister-Hope Mister-Hope closed this as not planned Won't fix, can't repro, duplicate, stale Dec 24, 2024
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