Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error in Arch Linux #2

Open
zxp19821005 opened this issue Jun 16, 2023 · 1 comment
Open

Build error in Arch Linux #2

zxp19821005 opened this issue Jun 16, 2023 · 1 comment

Comments

@zxp19821005
Copy link

Basic info

  • OS : EndeavourOS x86_64 6.1.34-lts
  • DE : Cinnamon 5.8.1
  • Build software
  • node : 20.3.0
  • npm : 8.19.2
    I've cloned the program:
$ git clone https://ghproxy.com/https://github.com/ShlomiRex/e-xterm.git
正克隆到 'e-xterm'...
remote: Enumerating objects: 2254, done.
remote: Counting objects: 100% (57/57), done.
remote: Compressing objects: 100% (38/38), done.
remote: Total 2254 (delta 19), reused 51 (delta 18), pack-reused 2197
接收对象中: 100% (2254/2254), 2.21 MiB | 1.57 MiB/s, 完成.
处理 delta 中: 100% (1456/1456), 完成.

npm install

$ npm install

added 1 package, and changed 1 package in 9s

65 packages are looking for funding
  run `npm fund` for details

npm run build

$ npm run build

> [email protected] build
> tsc

node_modules/@types/node/ts4.8/test.d.ts:914:34 - error TS1005: '?' expected.

914             : F extends abstract new (...args: any) => infer T
                                     ~~~

node_modules/@types/node/ts4.8/test.d.ts:915:17 - error TS1005: ':' expected.

915                 ? T
                    ~

node_modules/@types/node/ts4.8/test.d.ts:916:17 - error TS1005: ',' expected.

916                 : unknown,
                    ~

node_modules/@types/node/ts4.8/test.d.ts:919:34 - error TS1005: '?' expected.

919             : F extends abstract new (...args: infer Y) => any
                                     ~~~

node_modules/@types/node/ts4.8/test.d.ts:920:17 - error TS1005: ':' expected.

920                 ? Y
                    ~

node_modules/@types/node/ts4.8/test.d.ts:921:17 - error TS1005: ',' expected.

921                 : unknown[],
                    ~

node_modules/@types/node/ts4.8/test.d.ts:921:26 - error TS1005: ',' expected.

921                 : unknown[],
                             ~

node_modules/@types/node/ts4.8/test.d.ts:922:5 - error TS1109: Expression expected.

922     > {
        ~

node_modules/@types/node/ts4.8/test.d.ts:926:24 - error TS1005: ',' expected.

926         arguments: Args;
                           ~

node_modules/@types/node/ts4.8/test.d.ts:930:35 - error TS1005: ',' expected.

930         error: unknown | undefined;
                                      ~

node_modules/@types/node/ts4.8/test.d.ts:936:39 - error TS1005: ',' expected.

936         result: ReturnType | undefined;
                                          ~

node_modules/@types/node/ts4.8/test.d.ts:940:21 - error TS1005: ',' expected.

940         stack: Error;
                        ~

node_modules/@types/node/ts4.8/test.d.ts:945:19 - error TS1005: ',' expected.

945         target: F extends abstract new (...args: any) => any ? F : undefined;
                      ~~~~~~~

node_modules/@types/node/ts4.8/test.d.ts:945:27 - error TS1005: ':' expected.

945         target: F extends abstract new (...args: any) => any ? F : undefined;
                              ~~~~~~~~

node_modules/@types/node/ts4.8/test.d.ts:945:36 - error TS1005: ',' expected.

945         target: F extends abstract new (...args: any) => any ? F : undefined;
                                       ~~~

node_modules/@types/node/ts4.8/test.d.ts:945:55 - error TS1005: '{' expected.

945         target: F extends abstract new (...args: any) => any ? F : undefined;
                                                          ~~

node_modules/@types/node/ts4.8/test.d.ts:945:64 - error TS1005: ',' expected.

945         target: F extends abstract new (...args: any) => any ? F : undefined;
                                                                   ~

node_modules/@types/node/ts4.8/test.d.ts:945:77 - error TS1005: ',' expected.

945         target: F extends abstract new (...args: any) => any ? F : undefined;
                                                                                ~

node_modules/@types/node/ts4.8/test.d.ts:949:22 - error TS1005: ',' expected.

949         this: unknown;
                         ~


Found 19 errors.
@ShlomiRex
Copy link
Owner

@zxp19821005 Try to update npm:
npm update
npm cache clean --force
npm install
It doesn't look it has anything to do with the project, but with the installed packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants