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

[test-runner] Fail to install esbuild #1551

Closed
jlesquembre opened this issue Jul 12, 2021 · 1 comment
Closed

[test-runner] Fail to install esbuild #1551

jlesquembre opened this issue Jul 12, 2021 · 1 comment

Comments

@jlesquembre
Copy link

After upgrading to latest node, npm and esbuild, I'm getting this error when I launch the test-runner with the esbuildPlugin:

/my/projetc/node_modules/@web/dev-server-esbuild/node_modules/esbuild/bin/esbuild:2
throw new Error(`esbuild: Failed to install correctly
^

Error: esbuild: Failed to install correctly

It's interesing, because I have esbuild installed locally:

npx esbuild --version returns 0.12.15

As a workaround, I can force the esbuild installation executing
node node_modules/@web/dev-server-esbuild/node_modules/esbuild/install.js

But I think a better solution would be if the esbuildPlugin will use the esbuild I specified in my package.json

@jlesquembre
Copy link
Author

Seems to be a bug with npm v7:
evanw/esbuild#462
npm/cli#2606

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

1 participant