evanw/esbuild

validateBinaryVersion error

Closed this issue · 2 comments

There were reports before about pnpm not behaving well. You can try some of these steps:

  • Upgrading your pnpm version and try again. You may need to delete the whole node_modules and pnpm-lock.yaml.
  • Switching to npm and try again.
  • Check your environment variables to see if there is a mis-configured ESBUILD_BINARY_PATH, which chould lead to the js module in esbuild to start a binary in different version. If so, delete that env and try again.

If it still occur when you're using pnpm, you can file an issue to pnpm.

指定到最新版本0.24.0可以了
"esbuild": "^0.24.0"
pnpm似乎无法自动获取到最新版本