星哥的私有笔记
首页
  • 基础知识
  • DevOps
  • WEB服务
  • 文件系统
  • Nginx
  • Docker
  • 开源软件
  • 数据库
  • 安卓相关
  • JumpServer
  • 阿里云
  • 腾讯云
  • 亚马逊云
  • 其他
服务器安全
常用软件
互联网福利
调试Debug
首页
  • 基础知识
  • DevOps
  • WEB服务
  • 文件系统
  • Nginx
  • Docker
  • 开源软件
  • 数据库
  • 安卓相关
  • JumpServer
  • 阿里云
  • 腾讯云
  • 亚马逊云
  • 其他
服务器安全
常用软件
互联网福利
调试Debug
  • 首页
  • ChatGPT
    • ChatGPT
    • ChatGPT2025
  • 基础知识
  • Git服务
  • 网络安全
  • 开源软件
  • 开源2025
  • 互联网2025
  • MySQL
  • Nginx
  • Shell
  • Ubuntu
  • 硬件
  • NAS

Vuepress-重装系统之后VuePress出现问题

node版本不同

重装系统之后报错

Administrator@chuanqu-star MINGW64 /g/STAR学习/g.xgss.net (vuepress)
$ yarn init
yarn init v1.22.22
error Error: Can't answer a question unless a user TTY
    at ConsoleReporter.question (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:93384:59)
    at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:85589:38)
    at Generator.next (<anonymous>)
    at step (C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:310:30)
    at C:\Users\Administrator\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:321:13
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
info Visit https://yarnpkg.com/en/docs/cli/init for documentation about this command.

旧电脑yarn docs:dev

$ yarn docs:dev
yarn run v1.22.17
$ vuepress dev docs
.......
success [17:16:20] Build 1f0d71 finished in 12792 ms!
> VuePress dev server listening at http://localhost:8099/

新电脑yarn docs:dev

$ yarn docs:dev
yarn run v1.22.22
$ vuepress dev docs
'vuepress' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

版本区别

新的系统
node -v
v20.15.1

服务器
node -v
v16.14.0

旧的电脑
node -v
v16.14.0


要重装吗?

Last Updated:: 6/5/25, 8:18 AM
Contributors: star