diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index a3d93d704..82e2e94cf 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -37,7 +37,7 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - - run: npm install --global pnpm + - run: npm install --global pnpm@7.27.1 - name: 安装依赖 run: pnpm install diff --git a/Dockerfile b/Dockerfile index df7fb6e9e..312e4cf72 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /app USER root RUN apk add --update python3 make g++ && rm -rf /var/cache/apk/* COPY ./packages/admin/ ./ -RUN npm install --global pnpm +RUN npm install --global pnpm@7.27.1 RUN pnpm config set network-timeout 600000 -g RUN pnpm config set registry https://registry.npmjs.org -g RUN pnpm config set fetch-retries 20 -g @@ -20,7 +20,7 @@ FROM node:18 as SERVER_BUILDER ENV NODE_OPTIONS=--max_old_space_size=4096 WORKDIR /app COPY ./packages/server/ . -RUN npm install --global pnpm +RUN npm install --global pnpm@7.27.1 RUN pnpm config set network-timeout 600000 -g RUN pnpm config set registry https://registry.npmmirror.com -g RUN pnpm config set fetch-retries 20 -g @@ -33,7 +33,7 @@ FROM node:16-alpine AS WEBSITE_DEPS # RUN apk add --no-cache libc6-compat WORKDIR /app COPY ./packages/website/package.json ./packages/website/pnpm-lock.yaml* ./ -RUN npm install --global pnpm +RUN npm install --global pnpm@7.27.1 RUN pnpm config set network-timeout 600000 -g RUN pnpm config set registry https://registry.npmmirror.com -g RUN pnpm config set fetch-retries 20 -g @@ -51,7 +51,7 @@ ARG VAN_BLOG_BUILD_SERVER ENV VAN_BLOG_SERVER_URL ${VAN_BLOG_BUILD_SERVER} ARG VAN_BLOG_VERSIONS ENV VAN_BLOG_VERSION ${VAN_BLOG_VERSIONS} -RUN npm install --global pnpm +RUN npm install --global pnpm@7.27.1 RUN pnpm config set network-timeout 600000 -g RUN pnpm config set registry https://registry.npmmirror.com -g RUN pnpm config set fetch-retries 20 -g @@ -66,7 +66,7 @@ RUN apk add --no-cache --update tzdata caddy nss-tools \ && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && echo "Asia/Shanghai" > /etc/timezone \ && apk del tzdata -RUN npm install --global pnpm +RUN npm install --global pnpm@7.27.1 RUN pnpm config set network-timeout 600000 -g RUN pnpm config set registry https://registry.npmmirror.com -g RUN pnpm config set fetch-retries 20 -g