8***@qq.com
8***@qq.com
  • 发布:2022-07-24 21:21
  • 更新:2022-07-24 21:38
  • 阅读:484

HbuilderX自动更新后,所有程序跑不了

分类:HBuilderX

21:02:54.445 项目 'test' 开始编译...
21:02:56.614 请注意运行模式下,因日志输出、sourcemap 以及未压缩源码等原因,性能和包体积,均不及发行模式。
21:02:56.629 正在编译中...
21:02:56.633 failed to load config from D:\program\HBuilderX343\plugins\uniapp-cli-vite\vite.config.js
21:02:56.639 error when starting dev server:
21:02:56.643 Error:
21:02:56.643 You installed esbuild on another platform than the one you're currently using.
21:02:56.648 This won't work because esbuild is written with native code and needs to
21:02:56.652 install a platform-specific binary executable.
21:02:56.652 Specifically the "esbuild-windows-32" package is present but this platform
21:02:56.656 needs the "esbuild-windows-32" package instead. People often get into this
21:02:56.659 situation by installing esbuild on Windows or macOS and copying "node_modules"
21:02:56.663 into a Docker image that runs Linux, or by copying "node_modules" between
21:02:56.667 Windows and WSL environments.
21:02:56.670 If you are installing with npm, you can try not copying the "node_modules"
21:02:56.674 directory when you copy the files over, and running "npm ci" or "npm install"
21:02:56.675 on the destination platform after the copy. Or you could consider using yarn
21:02:56.678 instead which has built-in support for installing a package on multiple
21:02:56.681 platforms simultaneously.
21:02:56.684 If you are installing with yarn, you can try listing both this platform and the
21:02:56.684 other platform in your ".yarnrc.yml" file using the "supportedArchitectures"
21:02:56.687 feature: https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
21:02:56.687 Keep in mind that this means multiple copies of esbuild will be present.
21:02:56.691 Another alternative is to use the "esbuild-wasm" package instead, which works
21:02:56.694 the same way on all platforms. But it comes with a heavy performance cost and
21:02:56.697 can sometimes be 10x slower than the "esbuild" package, so you may also not
21:02:56.700 want to do that.
21:02:56.700 at generateBinPath (D:\program\HBuilderX343\plugins\uniapp-cli-vite\node_modules\esbuild\lib\main.js:1785:17)
21:02:56.704 at esbuildCommandAndArgs (D:\program\HBuilderX343\plugins\uniapp-cli-vite\node_modules\esbuild\lib\main.js:1869:31)
21:02:56.707 at ensureServiceIsRunning (D:\program\HBuilderX343\plugins\uniapp-cli-vite\node_modules\esbuild\lib\main.js:2031:25)
21:02:56.711 at Object.build (D:\program\HBuilderX343\plugins\uniapp-cli-vite\node_modules\esbuild\lib\main.js:1924:26)
21:02:56.714 at bundleConfigFile (D:\program\HBuilderX343\plugins\uniapp-cli-vite\node_modules\vite\dist\node\chunks\dep-8f5c9290.js:61911:34)
21:02:56.718 at loadConfigFromFile (D:\program\HBuilderX343\plugins\uniapp-cli-vite\node_modules\vite\dist\node\chunks\dep-8f5c9290.js:61888:35)
21:02:56.718 at resolveConfig (D:\program\HBuilderX343\plugins\uniapp-cli-vite\node_modules\vite\dist\node\chunks\dep-8f5c9290.js:61415:34)
21:02:56.722 at createServer (D:\program\HBuilderX343\plugins\uniapp-cli-vite\node_modules\vite\dist\node\chunks\dep-8f5c9290.js:60080:26)
21:02:56.723 at createServer (D:\program\HBuilderX343\plugins\uniapp-cli-vite\node_modules\@dcloudio\vite-plugin-uni\dist\cli\server.js:15:50)
21:02:56.726 at CAC.runDev (D:\program\HBuilderX343\plugins\uniapp-cli-vite\node_modules\@dcloudio\vite-plugin-uni\dist\cli\action.js:24:45)

2022-07-24 21:21 负责人:无 分享
已邀请:
8***@qq.com

8***@qq.com (作者)

发现问题了,NND,esbuild被360隔离了,擦,放出来就好了

该问题目前已经被锁定, 无法添加新回复