-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Error: spawn C:\..\node_modules\esbuild\esbuild.exe ENOENT #1361
Comments
I know how to fix it. Run: |
Check If that's not the problem, try installing esbuild directly in a fresh project - if that doesn't work also, then it's a esbuild bug and should be reported to esbuild instead. |
|
It turns out npm v7 has a bug that corrupts |
yes,this is right |
I had this exact error but for a different reason. I was on a machine with App Locker enable and it prevented the execution of |
Just run |
这个bug居然还在 不应该呀尤大 |
it works for me! |
EL HOMBRE! |
it worked! |
这个是vite的bug还是npm的bug |
package-lock.json 中 "node_modules/esbuild" 缺少 "hasInstallScript": true , 所以esbuild的install.js没有运行生成esbuild.exe |
node ./node_modules/esbuild/install.js |
node ./node_modules/esbuild/install.js 为啥我运行这一句也不行了呢??呃 |
相同的问, 需要执行node ./node_modules/esbuild/install.js 所以这不是BUG吗 不修一下吗 |
it works for me |
Describe the bug
npm run build error
System Info
vite
version: 2.0.0-beta.5Logs (Optional if provided reproduction)
The text was updated successfully, but these errors were encountered: