Skip to content

Commit

Permalink
修复pnpm全局安装
Browse files Browse the repository at this point in the history
  • Loading branch information
whyour committed May 3, 2022
1 parent c71d34c commit 89f7b99
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion sample/extra.sample.sh
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion shell/check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ check_pm2() {

main() {
echo -e "=====> 开始检测"
pnpm install -g pm2
pnpm add -g pm2
copy_dep
check_ql
check_nginx
Expand Down

0 comments on commit 89f7b99

Please sign in to comment.