fix "npm error command sh -c npx only-allow pnpm" problem when installing packages for web from local source code (#621)

Co-authored-by: yjzhou <woodobserver@163.com>
This commit is contained in:
dfder2
2025-04-15 17:04:38 +08:00
committed by GitHub
parent b43baf9f19
commit 569d061f0e
3 changed files with 6 additions and 3 deletions
@@ -192,7 +192,8 @@ Please visit [https://nodejs.org/en/download](https://nodejs.org/en/download) an
2. Install the dependencies.
```
npm install
npm i -g pnpm
pnpm install
```
3. Configure the environment variables. Create a file named .env.local in the current directory and copy the contents from .env.example. Modify the values of these environment variables according to your requirements:
@@ -185,7 +185,8 @@ https://nodejs.org/en/download から対応するOSのv18.x以上のインスト
2. 依存関係をインストール
```
npm install
npm i -g pnpm
pnpm install
```
3. 環境変数を構成。現在のディレクトリに `.env.local` ファイルを作成し、`.env.example` の内容をコピーします。必要に応じてこれらの環境変数の値を変更します。
@@ -187,7 +187,8 @@ Web 前端服务启动需要用到 [Node.js v18.x (LTS)](http://nodejs.org) 、[
2. 安装依赖包
```
npm install
npm i -g pnpm
pnpm install
```
3. 配置环境变量。在当前目录下创建文件 `.env.local`,并复制`.env.example`中的内容。根据需求修改这些环境变量的值: