mirror of
https://github.com/langgenius/dify-docs-archived.git
synced 2026-07-01 20:35:52 -04:00
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:
@@ -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`中的内容。根据需求修改这些环境变量的值:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user