vuejs / vitepress

Vite & Vue powered static site generator.
https://vitepress.dev
MIT License
13.29k stars 2.15k forks source link

node20.10.0安装vitepress失败 #4157

Closed ddmy closed 3 months ago

ddmy commented 3 months ago

Describe the bug

官网说支持node版本18+,我的node版本是20.10.0,安装时报错,@achrinza/node-ipc@9.2.2 对node版本有要求 image

Reproduction

cli新建目录 运行 yarn add -D vitepress

Expected behavior

能够正常安装

System Info

System:
    OS: macOS 14.6.1
    CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
    Memory: 27.87 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 7.12.2 - /usr/local/bin/pnpm
  Browsers:
    Chrome: 127.0.6533.120
    Safari: 17.6

Additional context

image

Validations

brc-dd commented 3 months ago

It is coming from some other dep in your package.json. We don't use that package. Please share your package.json. Most likely you've vue/cli installed.

ddmy commented 3 months ago

It is coming from some other dep in your package.json. We don't use that package. Please share your package.json. Most likely you've vue/cli installed.

image This is my newly created empty directory. There is something strange about this problem

brc-dd commented 3 months ago

Try running npx find-up-cli package.json

ddmy commented 3 months ago

Try running npx find-up-cli package.json

Sure enough, after running this command, I found a package.json in my current user directory. After deleting this file, I can install it normally. I thought package.json would only search the current directory. It seems that I still need to understand it specifically. Thank you very much!