evanw / esbuild

An extremely fast bundler for the web
https://esbuild.github.io/
MIT License
38.16k stars 1.15k forks source link

Failed to install "esbuild-linux-64" using npm #2856

Closed cliffordfajardo closed 1 year ago

cliffordfajardo commented 1 year ago

Recently upgraded to esbuild 0.16.3 & tried running it on my CI machine at work that is running on RHEL7 (linux-64)

This was the error log:

Trying to install "esbuild-linux-64" using npm
Failed to install "esbuild-linux-64" using npm: Command failed: npm install --loglevel=error --prefer-offline --no-audit --progress=false esbuild-linux-64@0.11.23
npm ERR! code ENETUNREACH
npm ERR! syscall connect
npm ERR! errno ENETUNREACH

Full error log

``` yarn install v1.22.10 [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@2.3.2: The platform "linux" is incompatible with this module. info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/android-arm@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/android-arm@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/android-arm@0.16.3: The CPU architecture "x64" is incompatible with this module. info @esbuild/android-arm64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/android-arm64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/android-arm64@0.16.3: The CPU architecture "x64" is incompatible with this module. info @esbuild/android-x64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/android-x64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/darwin-arm64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/darwin-arm64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/darwin-arm64@0.16.3: The CPU architecture "x64" is incompatible with this module. info @esbuild/darwin-x64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/darwin-x64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/freebsd-arm64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/freebsd-arm64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/freebsd-arm64@0.16.3: The CPU architecture "x64" is incompatible with this module. info @esbuild/freebsd-x64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/freebsd-x64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-arm@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-arm@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-arm64@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-arm64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-ia32@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-ia32@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-loong64@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-loong64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-mips64el@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-mips64el@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-ppc64@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-ppc64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-riscv64@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-riscv64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-s390x@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-s390x@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/netbsd-x64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/netbsd-x64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/openbsd-x64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/openbsd-x64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/sunos-x64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/sunos-x64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/win32-arm64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/win32-arm64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/win32-arm64@0.16.3: The CPU architecture "x64" is incompatible with this module. info @esbuild/win32-ia32@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/win32-ia32@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/win32-ia32@0.16.3: The CPU architecture "x64" is incompatible with this module. info @esbuild/win32-x64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/win32-x64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning " > @monaco-editor/react@4.4.6" has unmet peer dependency "monaco-editor@>= 0.25.0 < 1". warning "@monaco-editor/react > @monaco-editor/loader@1.3.2" has unmet peer dependency "monaco-editor@>= 0.21.0 < 1". warning "@neo4j/graphql > graphql-parse-resolve-info@4.12.3" has incorrect peer dependency "graphql@>=0.9 <0.14 || ^14.0.2 || ^15.4.0". warning " > react-highlight-words@0.16.0" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0-0". warning " > react-scroll@1.8.6" has incorrect peer dependency "react@^15.5.4 || ^16.0.0 || ^17.0.0". warning " > react-scroll@1.8.6" has incorrect peer dependency "react-dom@^15.5.4 || ^16.0.0 || ^17.0.0". warning " > react-test-renderer@17.0.2" has incorrect peer dependency "react@17.0.2". warning " > remix-auth@3.4.0" has unmet peer dependency "@remix-run/server-runtime@^1.0.0". warning " > remix-auth-oauth2@1.5.0" has unmet peer dependency "@remix-run/server-runtime@^1.0.0". warning " > remix-utils@5.3.0" has unmet peer dependency "@remix-run/server-runtime@^1.5.1". warning " > remix-utils@5.3.0" has unmet peer dependency "zod@^3.19.1". [4/4] Building fresh packages... error /export/content/data/multiproduct-post-commit/i001/workspace/sdi-infra-fe_ed799ed7f3b188bf56cdb85257444474f76ff90c/sdi-infra-fe/node_modules/@vanilla-extract/integration/node_modules/esbuild: Command failed. Exit code: 1 Command: node install.js Arguments: Directory: /export/content/data/multiproduct-post-commit/i001/workspace/sdi-infra-fe_ed799ed7f3b188bf56cdb85257444474f76ff90c/sdi-infra-fe/node_modules/@vanilla-extract/integration/node_modules/esbuild Output: Trying to install "esbuild-linux-64" using npm Failed to install "esbuild-linux-64" using npm: Command failed: npm install --loglevel=error --prefer-offline --no-audit --progress=false esbuild-linux-64@0.11.23 npm ERR! code ENETUNREACH npm ERR! syscall connect npm ERR! errno ENETUNREACH npm ERR! request to https://registry.yarnpkg.com/esbuild-linux-64 failed, reason: connect ENETUNREACH 2606:4700::6810:1523:443 npm ERR! A complete log of this run can be found in: npm ERR! /export/home/tester/.npm/_logs/2023-01-20T21_24_46_471Z-debug-0.log Trying to download "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.11.23.tgz" Failed to download "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.11.23.tgz": connect ENETUNREACH 2606:4700::6810:1323:443 Install unsuccessful info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. ```
cliffordfajardo commented 1 year ago

@evanw - would you be able to publish a new version of esbuild-linux-64 on npm? I see that the one published on npm at this time is version 0.15.18

https://www.npmjs.com/package/esbuild-linux-64 CleanShot 2023-01-20 at 13 28 13@2x

cliffordfajardo commented 1 year ago

I noticed I was using esbuild 14.51 prior to this error happening. I did a search for esbuild-linux-64 in the esbuild github repo & saw that for esbuild 16.0, you need to specify esbuild directly on your package.json file

I tried that and unfortunately still getting a similar error:

``` yarn install v1.22.10 [1/4] Resolving packages... [2/4] Fetching packages... info fsevents@2.3.2: The platform "linux" is incompatible with this module. info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/android-arm@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/android-arm@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/android-arm@0.16.3: The CPU architecture "x64" is incompatible with this module. info @esbuild/android-arm64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/android-arm64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/android-arm64@0.16.3: The CPU architecture "x64" is incompatible with this module. info @esbuild/android-x64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/android-x64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/darwin-arm64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/darwin-arm64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/darwin-arm64@0.16.3: The CPU architecture "x64" is incompatible with this module. info @esbuild/darwin-x64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/darwin-x64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/freebsd-arm64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/freebsd-arm64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/freebsd-arm64@0.16.3: The CPU architecture "x64" is incompatible with this module. info @esbuild/freebsd-x64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/freebsd-x64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-arm@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-arm@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-arm64@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-arm64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-ia32@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-ia32@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-loong64@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-loong64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-mips64el@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-mips64el@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-ppc64@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-ppc64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-riscv64@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-riscv64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-s390x@0.16.3: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-s390x@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/netbsd-x64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/netbsd-x64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/openbsd-x64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/openbsd-x64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/sunos-x64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/sunos-x64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/win32-arm64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/win32-arm64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/win32-arm64@0.16.3: The CPU architecture "x64" is incompatible with this module. info @esbuild/win32-ia32@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/win32-ia32@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/win32-ia32@0.16.3: The CPU architecture "x64" is incompatible with this module. info @esbuild/win32-x64@0.16.3: The platform "linux" is incompatible with this module. info "@esbuild/win32-x64@0.16.3" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/android-arm@0.16.17: The platform "linux" is incompatible with this module. info "@esbuild/android-arm@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/android-arm@0.16.17: The CPU architecture "x64" is incompatible with this module. info @esbuild/android-arm64@0.16.17: The platform "linux" is incompatible with this module. info "@esbuild/android-arm64@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/android-arm64@0.16.17: The CPU architecture "x64" is incompatible with this module. info @esbuild/android-x64@0.16.17: The platform "linux" is incompatible with this module. info "@esbuild/android-x64@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/darwin-arm64@0.16.17: The platform "linux" is incompatible with this module. info "@esbuild/darwin-arm64@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/darwin-arm64@0.16.17: The CPU architecture "x64" is incompatible with this module. info @esbuild/darwin-x64@0.16.17: The platform "linux" is incompatible with this module. info "@esbuild/darwin-x64@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/freebsd-arm64@0.16.17: The platform "linux" is incompatible with this module. info "@esbuild/freebsd-arm64@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/freebsd-arm64@0.16.17: The CPU architecture "x64" is incompatible with this module. info @esbuild/freebsd-x64@0.16.17: The platform "linux" is incompatible with this module. info "@esbuild/freebsd-x64@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-arm@0.16.17: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-arm@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-arm64@0.16.17: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-arm64@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-ia32@0.16.17: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-ia32@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-loong64@0.16.17: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-loong64@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-mips64el@0.16.17: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-mips64el@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-ppc64@0.16.17: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-ppc64@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-riscv64@0.16.17: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-riscv64@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/linux-s390x@0.16.17: The CPU architecture "x64" is incompatible with this module. info "@esbuild/linux-s390x@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/netbsd-x64@0.16.17: The platform "linux" is incompatible with this module. info "@esbuild/netbsd-x64@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/openbsd-x64@0.16.17: The platform "linux" is incompatible with this module. info "@esbuild/openbsd-x64@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/sunos-x64@0.16.17: The platform "linux" is incompatible with this module. info "@esbuild/sunos-x64@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/win32-arm64@0.16.17: The platform "linux" is incompatible with this module. info "@esbuild/win32-arm64@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/win32-arm64@0.16.17: The CPU architecture "x64" is incompatible with this module. info @esbuild/win32-ia32@0.16.17: The platform "linux" is incompatible with this module. info "@esbuild/win32-ia32@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. info @esbuild/win32-ia32@0.16.17: The CPU architecture "x64" is incompatible with this module. info @esbuild/win32-x64@0.16.17: The platform "linux" is incompatible with this module. info "@esbuild/win32-x64@0.16.17" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning " > @monaco-editor/react@4.4.6" has unmet peer dependency "monaco-editor@>= 0.25.0 < 1". warning "@monaco-editor/react > @monaco-editor/loader@1.3.2" has unmet peer dependency "monaco-editor@>= 0.21.0 < 1". error /export/content/data/multiproduct-post-commit/i001/workspace/sdi-infra-fe_a0ad7506eb565df6142afa5927f7d44e8ff679e9/sdi-infra-fe/node_modules/@vanilla-extract/integration/node_modules/esbuild: Command failed. Exit code: 1 Command: node install.js Arguments: Directory: /export/content/data/multiproduct-post-commit/i001/workspace/sdi-infra-fe_a0ad7506eb565df6142afa5927f7d44e8ff679e9/sdi-infra-fe/node_modules/@vanilla-extract/integration/node_modules/esbuild Output: Trying to install "esbuild-linux-64" using npm Failed to install "esbuild-linux-64" using npm: Command failed: npm install --loglevel=error --prefer-offline --no-audit --progress=false esbuild-linux-64@0.11.23 npm ERR! code ETIMEDOUT npm ERR! syscall connect npm ERR! errno ETIMEDOUT npm ERR! network request to https://registry.yarnpkg.com/esbuild-linux-64 failed, reason: connect ETIMEDOUT 2606:4700::6810:1023:443 npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network 'proxy' config is set properly. See: 'npm help config' npm ERR! A complete log of this run can be found in: npm ERR! /export/home/tester/.npm/_logs/2023-01-20T22_05_47_678Z-debug-0.log Trying to download "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.11.23.tgz" Failed to download "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.11.23.tgz": connect ETIMEDOUT 2606:4700::6810:1423:443 Install unsuccessful info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command. ```
evanw commented 1 year ago

Failed to download "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.11.23.tgz": connect ENETUNREACH 2606:4700::6810:1323:443

First of all, it looks like your machine is having network reachability problems. There's nothing I can do about that. You'll have to fix that on your end. Second, the log says you're installing both esbuild 0.16.3 (which worked fine) and also esbuild 0.11.23 (which failed). So it looks like your problem is with esbuild version 0.11.23, not with esbuild version 0.16.3.

cliffordfajardo commented 1 year ago

Thanks - will continue figuring out stuff on my end, and if I find the solution, I will update this issue as well

evanw commented 1 year ago

Ok. I'm closing this issue because this is not a problem that making a change in a new build of esbuild will fix.