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] Wepy build watch Error: ERR! Parse WePY config failed. Are you trying to use
- When starting Vue project: cannot find module ‘webpack cli / bin / config yargs’ error resolution
- [Solved] Vite Bulk Import import.meta.glob Error: ERR_ABORTED 403 (Forbidden)
- [Solved] webpack.config.js configuration encountered Error: Cannot find module’@babel/core’&&Cannot find module’@babel/plugin-transform-react-jsx’
- Error: cannot find module ‘webpack cli/bin/config yargs’‘
- [vite] http proxy error: Error: self signed certificate in certificate chain vite
- How to Solve Clickhouse restart error: Cannot obtain value of path from config file…
- Database App.config configurate file Error & Solution
- [Solved] Webpack compilation Error: Cannot find module’webpack-cli/bin/config-yargs’
- Intellij IDEA jetty-jmx.xml Error:Duplicate config file paths found
- [Solved] Wechat IOS signature error config:fail
- [Solved] Springcloud config Error: Error occured cloning to base directory.
- [Solved] Redis Startup Error: FATAL CONFIG FILE ERROR
- [Go] Solve can’t load package: cannot find module providing package github.com/xxxxx
- [Solved] Spring cloud config server can’t parse the YML file of the remote warehouse, and it will also report an error
- [Solved] Cmake compile opencv open-source project Error: but it set OpenCV_FOUND to FALSE so package “OpenCV” is considered to be…
- Maskrcnn-benchmark Error: KeyError “Non-existent config key: MODEL.BACKBONE.OUT_CHANNELS“
- [Solved] throw new Error(“‘output.filename’ is required, either in config file or as –output-filename”);
- [Solved] Error: package or namespace load failed for ‘ggplot2’ in loadNamespace(i, c(lib.loc, .libPaths()), v
- [Solved] ERROR: You don‘t have the SNMP perl module installed.