Commit dd2b1ed5 by Trivikram Kamat Committed by GitHub

fix: install corepack from npm (#5905)

* fix: install corepack from npm

* docs: install corepack from npm
1 parent baec89f8
...@@ -2,5 +2,5 @@ ports: ...@@ -2,5 +2,5 @@ ports:
- port: 5555 - port: 5555
onOpen: open-preview onOpen: open-preview
tasks: tasks:
- init: corepack enable && pnpm install - init: npm i -g corepack && pnpm install
command: pnpm run dev:play command: pnpm run dev:play
...@@ -60,7 +60,7 @@ git clone https://github.com/vbenjs/vue-vben-admin.git ...@@ -60,7 +60,7 @@ git clone https://github.com/vbenjs/vue-vben-admin.git
```bash ```bash
cd vue-vben-admin cd vue-vben-admin
corepack enable npm i -g corepack
pnpm install pnpm install
......
...@@ -60,7 +60,7 @@ git clone https://github.com/vbenjs/vue-vben-admin.git ...@@ -60,7 +60,7 @@ git clone https://github.com/vbenjs/vue-vben-admin.git
```bash ```bash
cd vue-vben-admin cd vue-vben-admin
corepack enable npm i -g corepack
pnpm install pnpm install
``` ```
......
...@@ -60,7 +60,7 @@ git clone https://github.com/vbenjs/vue-vben-admin.git ...@@ -60,7 +60,7 @@ git clone https://github.com/vbenjs/vue-vben-admin.git
```bash ```bash
cd vue-vben-admin cd vue-vben-admin
corepack enable npm i -g corepack
pnpm install pnpm install
``` ```
......
...@@ -58,7 +58,7 @@ Open a terminal in your code directory and execute the following commands: ...@@ -58,7 +58,7 @@ Open a terminal in your code directory and execute the following commands:
cd vue-vben-admin cd vue-vben-admin
# Enable the project-specified version of pnpm # Enable the project-specified version of pnpm
corepack enable npm i -g corepack
# Install dependencies # Install dependencies
pnpm install pnpm install
......
...@@ -58,7 +58,7 @@ git clone https://gitee.com/annsion/vue-vben-admin.git ...@@ -58,7 +58,7 @@ git clone https://gitee.com/annsion/vue-vben-admin.git
cd vue-vben-admin cd vue-vben-admin
# 使用项目指定的pnpm版本进行依赖安装 # 使用项目指定的pnpm版本进行依赖安装
corepack enable npm i -g corepack
# 安装依赖 # 安装依赖
pnpm install pnpm install
......
...@@ -6,7 +6,7 @@ ENV PATH="$PNPM_HOME:$PATH" ...@@ -6,7 +6,7 @@ ENV PATH="$PNPM_HOME:$PATH"
ENV NODE_OPTIONS=--max-old-space-size=8192 ENV NODE_OPTIONS=--max-old-space-size=8192
ENV TZ=Asia/Shanghai ENV TZ=Asia/Shanghai
RUN corepack enable RUN npm i -g corepack
WORKDIR /app WORKDIR /app
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!