From febdf8b43a915069710b540b2691c8f58bca29bc Mon Sep 17 00:00:00 2001 From: Zhao_Jiasheng <18535861947@163.com> Date: Wed, 28 Apr 2021 21:56:06 +0800 Subject: [PATCH] Supplement missing dependencies in README --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 89bdec9..acc3d5a 100755 --- a/README.md +++ b/README.md @@ -29,6 +29,19 @@ sudo apt update && sudo apt install yarn ### 安装vuepress +安装vuepress需要依赖v10.x以上的node.js,在命令行输入以下命令以查看node.js版本 + +``` +nodejs -v +``` + +如果版本过低导致安装失败,输入以下命令安装新版的node.js,其中版本号14可以根据node.js官网的最新版本更改 + +``` +curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - +sudo apt-get install -y nodejs +``` + 可以为所有项目安装全局的唯一 vuepress ```bash