From 89f7b99a942c9e5a1c5ddb075ecd5fc266d3f804 Mon Sep 17 00:00:00 2001 From: whyour Date: Tue, 3 May 2022 18:07:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dpnpm=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E5=AE=89=E8=A3=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/Dockerfile | 5 +++-- sample/extra.sample.sh | 2 +- shell/check.sh | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 2af17b8d512..45c43c93c4a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -39,8 +39,9 @@ RUN set -x \ && git config --global user.email "qinglong@@users.noreply.github.com" \ && git config --global user.name "qinglong" \ && npm install -g pnpm \ - && pnpm install -g pm2 \ - && pnpm install -g ts-node typescript tslib \ + && pnpm setup \ + && source /root/.bashrc \ + && pnpm add -g pm2 ts-node typescript tslib \ && git clone -b ${QL_BRANCH} ${QL_URL} ${QL_DIR} \ && cd ${QL_DIR} \ && cp -f .env.example .env \ diff --git a/sample/extra.sample.sh b/sample/extra.sample.sh index ac1597df88c..6c5b5922f85 100644 --- a/sample/extra.sample.sh +++ b/sample/extra.sample.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash ## 添加你需要重启自动执行的任意命令,比如 ql repo -## 安装node依赖使用 pnpm install -g xxx xxx +## 安装node依赖使用 pnpm add -g xxx xxx ## 安装python依赖使用 pip3 install xxx diff --git a/shell/check.sh b/shell/check.sh index 27b272379c1..c777054c05d 100644 --- a/shell/check.sh +++ b/shell/check.sh @@ -98,7 +98,7 @@ check_pm2() { main() { echo -e "=====> 开始检测" - pnpm install -g pm2 + pnpm add -g pm2 copy_dep check_ql check_nginx