The vite project reported an error in Jenkins automatic packaging and could not find esbuild-linux-64
If esbuild-windows-64
is not found for development in window environment, it needs to use esbuild-linux-64
for construction in Linux environment. If esbuild-linux-64
is not found, an error will be reported
Actual error reporting:
error during build:
11:21:11 Error:
11:21:11 You installed esbuild on another platform than the one you're currently using.
11:21:11 This won't work because esbuild is written with native code and needs to
11:21:11 install a platform-specific binary executable.
11:21:11
11:21:11 Specifically the "esbuild-windows-64" package is present but this platform
11:21:11 needs the "esbuild-linux-64" package instead. People often get into this
11:21:11 situation by installing esbuild on Windows or macOS and copying "node_modules"
11:21:11 into a Docker image that runs Linux, or by copying "node_modules" between
11:21:11 Windows and WSL environments.
Error reason: vite cannot find esbuild-linux-64
in Linux environment
Two solutions:
1. In the Linux environment, npm i esbuild-linux-64
2. You can view the esbuild-linux-64 version number in package-lock.json and modify and download it yourself, after downloading, unzip the package folder, rename it esbuild-linux-64 and copy it to the current project node_modules directory
Read More:
- [Solved] Angular build Error: throw er; // Unhandled ‘error’ eventEmitted ‘error’ event on ChildProcess instance
- How to Solve Docker Run Error: standard_init_linux.go:219: exec user process caused: exec format error
- [Solved] Found bindings for the following environments
- [environment] docker: error response from daemon: OCI runtime
- NUXT Run generate error: is not in cwd [How to Solve]
- [Solved] npm Error: Can‘t find Python executable “python“, you can set the PYTHON env variable.
- Resolve Chromedriver’s original error: chrome not reachable
- How to Solve bootstrap.sh error during the construction of fabric environment
- Docker Create tomcat Error standard_init_linux.go:211: exec user process caused “no such file or directory”
- ASIC VCS Error: Error-[VCS_COM_UNE] Cannot find VCS compiler [Solved]
- The pip installation package under Windows reports an error: Microsoft Visual C++ 9.0 is required Unable to find vcvarsall.bat
- NPM run dev Error Module build failed: Error: Cannot find module ‘node-sass’
- Docker run Error: container_linux.go:235: starting container process caused “process_linux.go:258: appl
- [Solved] standard_init_linux.go:190: exec user process caused “exec format error“
- How to Solve k8s Nodal issues: /sys/fs/cgroup/memory/docker: no space left on device\““: unknown.
- NC -lk 7777 Error: nc: invalid option –k [How to Solve]
- How to Solve Docker failed to initialize Error
- insmod Error: Invalid module format [How to Solve]
- [Solved] Appium Install Error: Original error: Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variab
- NPM start project error: cannot find module ‘webpack’ problem solution