AlistGo / AlistGo/alist-web

npm install error

Đang mở
#67 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
479
Fork
703
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

执行`npm install`报错:
```
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: alist-web@0.0.0
npm ERR! Found: solid-transition-group@0.0.12
npm ERR! node_modules/solid-transition-group
npm ERR! solid-transition-group@"^0.0.12" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer solid-transition-group@"^0.0.10" from @hope-ui/solid@0.6.7
npm ERR! node_modules/@hope-ui/solid
npm ERR! @hope-ui/solid@"0.6.7" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
```
如果`npm install --legacy-peer-deps`强制安装, `npm run build`则会报错:
```
[vite:esbuild-transpile] Transform failed with 1 error:
assets/Upload.2d6e03b0.js:4:0: ERROR: Transforming async generator functions to the configured target environment ("chrome64", "edge79", "es2020", "firefox67", "safari11.1" + 2 overrides) is not supported yet

Transforming async generator functions to the configured target environment ("chrome64", "edge79", "es2020", "firefox67", "safari11.1" + 2 overrides) is not supported yet
1 | import { b6 as instance, _ as _password, o as objStore, d as useT, u as useRouter, e as createSignal, bw as createStore, f as createComponent, m as Show, a0 as HStack, B as Button, v as For, I as Input, W as VStack, a7 as getMainColor, n as notify, bf as Heading, Y as Box, aP as SelectWrapper, a6 as IconButton, bv as Checkbox, bc as Text, bx as Badge, t as createMemo, by as getFileSize, bz as Progress, bA as ProgressIndicator, p as pathJoin } from './index.db59f15c.js';
2 | import { a as RiDocumentFolderUploadFill, b as RiDocumentFileUploadFill } from './index.8a3582fc.js';
3 |
| ^
4 | async function* asyncPool(poolLimit, array, iteratorFn) {
| ^
5 | const executing = /* @__PURE__ */ new Set();

error during build:
Error: Transform failed with 1 error:
assets/Upload.2d6e03b0.js:4:0: ERROR: Transforming async generator functions to the configured target environment ("chrome64", "edge79", "es2020", "firefox67", "safari11.1" + 2 overrides) is not supported yet
```
复现#55, [#2833](https://github.com/alist-org/alist/discussions/2833)中的问题, 此时vite版本:
```
> alist-web@0.0.0 build
> vite build

vite v3.2.5 building for production...
✓ 595 modules transformed.
```
而使用`pnpm install`时, `npm run build`构建成功, 显示vite版本:
```
> alist-web@0.0.0 build
> vite build

vite v3.0.8 building for production...
✓ 595 modules transformed.
```
应该是`package.json`的依赖版本问题, 不过回溯几个commit都有相同问题

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.