-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
An error occurs when the YARN Workspaces MacOS terminal is used #1655
Comments
Installing esbuild with yarn works for me:
You'll have to provide more specific instructions for me to be able to reproduce your issue. |
@evanw here's a minimal reproduction https://github.com/ham-zeal/esbuile-13-yar3-error
i think this issue is again yarn P'n'P based, i'd be very interested in providing you with an automated test for PnP compatibility if you tell me where you want it. |
Caveat: I have never used Docker myself. From what I understand, if you are using Docker then you need to install packages inside Docker instead of outside. If you install packages outside of Docker and then copy the files inside, the binary executable in the installed package may be specific to the wrong OS and/or architecture. See #1170 for an example of someone accidentally doing this. |
i will give some context here:
when you run this it's pulling alpine 3, copying in all the files, on the step
this install is happening inside the container. to prove it's PnP you can check out this branch, which uses node_modules instead of pnp and it all works. lemme know if you need more info |
@eelco |
Issue #1656 was also created recently which may be a duplicate of this issue. I left the comment #1656 (comment) over there that explains what I think is happening in that case and a way to work around it:
Basically you need to either not copy a post-installed directory tree into Docker or you need to remove the |
@evanw I'm sorry that I did not provide enough information for you, the location of the error code is the install.js line 64, just try to comment out node_modules/esbuild/install.js validateBinaryVersion line 62 function. The code does not report an error/Volumes/Code/Test/esbuild cd vite-project
/Volumes/Code/Test/esbuild/vite-project yarn
yarn install v1.22.15
warning package.json: No license field
info No lockfile found.
warning vite-project@0.0.0: No license field
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
info esbuild-darwin-arm64@0.13.3: The CPU architecture "x64" is incompatible with this module.
info "esbuild-darwin-arm64@0.13.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-android-arm64@0.13.3: The platform "darwin" is incompatible with this module.
info "esbuild-android-arm64@0.13.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-android-arm64@0.13.3: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-arm@0.13.3: The platform "darwin" is incompatible with this module.
info "esbuild-linux-arm@0.13.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-arm@0.13.3: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-64@0.13.3: The platform "darwin" is incompatible with this module.
info "esbuild-linux-64@0.13.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-freebsd-arm64@0.13.3: The platform "darwin" is incompatible with this module.
info "esbuild-freebsd-arm64@0.13.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-freebsd-arm64@0.13.3: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-32@0.13.3: The platform "darwin" is incompatible with this module.
info "esbuild-linux-32@0.13.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-32@0.13.3: The CPU architecture "x64" is incompatible with this module.
info esbuild-openbsd-64@0.13.3: The platform "darwin" is incompatible with this module.
info "esbuild-openbsd-64@0.13.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-freebsd-64@0.13.3: The platform "darwin" is incompatible with this module.
info "esbuild-freebsd-64@0.13.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-sunos-64@0.13.3: The platform "darwin" is incompatible with this module.
info "esbuild-sunos-64@0.13.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-arm64@0.13.3: The platform "darwin" is incompatible with this module.
info "esbuild-linux-arm64@0.13.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-arm64@0.13.3: The CPU architecture "x64" is incompatible with this module.
info esbuild-windows-arm64@0.13.3: The platform "darwin" is incompatible with this module.
info "esbuild-windows-arm64@0.13.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-windows-arm64@0.13.3: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-ppc64le@0.13.3: The platform "darwin" is incompatible with this module.
info "esbuild-linux-ppc64le@0.13.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-ppc64le@0.13.3: The CPU architecture "x64" is incompatible with this module.
info esbuild-windows-32@0.13.3: The platform "darwin" is incompatible with this module.
info "esbuild-windows-32@0.13.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-windows-32@0.13.3: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-mips64le@0.13.3: The platform "darwin" is incompatible with this module.
info "esbuild-linux-mips64le@0.13.3" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-mips64le@0.13.3: The CPU architecture "x64" is incompatible with this module.
info esbuild-windows-64@0.13.3: The platform "darwin" is incompatible with this module.
info "esbuild-windows-64@0.13.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] 🔗 Linking dependencies...
[4/4] 🔨 Building fresh packages...
error /Volumes/Code/Test/esbuild/vite-project/node_modules/esbuild: Command failed.
Exit code: 1
Command: node install.js
Arguments:
Directory: /Volumes/Code/Test/esbuild/vite-project/node_modules/esbuild
Output:
node:child_process:867
throw err;
^
<ref *1> Error: spawnSync /Volumes/Code/Test/esbuild/vite-project/node_modules/esbuild/bin/esbuild ENOENT
at Object.spawnSync (node:internal/child_process:1083:20)
at spawnSync (node:child_process:812:24)
at Object.execFileSync (node:child_process:858:15)
at validateBinaryVersion (/Volumes/Code/Test/esbuild/vite-project/node_modules/esbuild/install.js:64:32)
at Object.<anonymous> (/Volumes/Code/Test/esbuild/vite-project/node_modules/esbuild/install.js:96:3)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) {
errno: -2,
code: 'ENOENT',
syscall: 'spawnSync /Volumes/Code/Test/esbuild/vite-project/node_modules/esbuild/bin/esbuild',
path: '/Volumes/Code/Test/esbuild/vite-project/node_modules/esbuild/bin/esbuild',
spawnargs: [ '--version' ],
error: [Circular *1],
status: null,
signal: null,
output: null,
pid: 10887,
stdout: null,
stderr: null
} |
This likely means it won't be possible to debug and fix the issue unfortunately. The first step to fixing this would be getting a set of reproducible steps that demonstrate the problem. Another suggestion could be to try upgrading the esbuild package to the latest version and seeing if the problem goes away. |
Closing due to age and lack of a way to reproduce the issue. |
Using vite to initialize the Vue project, I removed all dependencies and re-installed it like this
node v16.9.1
npm 7.21.1
The text was updated successfully, but these errors were encountered: