AlistGo / AlistGo/alist-web

npm install error

Abierto
#67 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
TypeScript
Estrellas
479
Forks
703
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

执行`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都有相同问题

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.