cannot find module '@oxlint/darwin-arm64/oxlint version: 0.15.9
imddc opened this issue · comments
I cannot reproduce your installation error. You can take a look at node_modules/.pnpm/oxlint@0.15.9/node_modules/oxlint/bin/oxlint
and see whether the correct package is installed.
Works with 0.15.7 but with 0.15.8 I get:
Error: Cannot find module '@oxlint/linux-x64-gnu/oxlint'
same issue in 0.15.9
:
❯ node -v
v22.13.1
❯ pnpm -v
10.2.0
back to 0.15.7
can solve the problem for now.
Is the common cause pnpm 10? I don't see any changes to the release pipeline 🤔
Independent of the pnpm:
Use the latest version
❯ npx oxlint -V
node:internal/modules/cjs/loader:1247
throw err;
^
Error: Cannot find module '@oxlint/win32-x64/oxlint.exe'
Require stack:
- C:\Users\xxx\AppData\Local\npm-cache\_npx\35625a6d79362d8c\node_modules\oxlint\bin\oxlint
at Function._resolveFilename (node:internal/modules/cjs/loader:1244:15)
at Function.resolve (node:internal/modules/helpers:146:19)
at Object.<anonymous> (C:\Users\xxx\AppData\Local\npm-cache\_npx\35625a6d79362d8c\node_modules\oxlint\bin\oxlint:102:13)
at Module._compile (node:internal/modules/cjs/loader:1562:14)
at Object..js (node:internal/modules/cjs/loader:1699:10)
at Module.load (node:internal/modules/cjs/loader:1313:32)
at Function._load (node:internal/modules/cjs/loader:1123:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:170:5) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\xxx\\AppData\\Local\\npm-cache\\_npx\\35625a6d79362d8c\\node_modules\\oxlint\\bin\\oxlint'
]
}
Node.js v22.13.1
Use 0.15.7
❯ npx oxlint@0.15.7 -V
Version: 0.15.7
The @oxlint
folder is empty
@Boshen maybe the same old problem with the CI?
Some platform-packages are published later by npm
and in the time someone can use npm update oxlint
and do not get all platform sub packages.
can someone try to use following commands and report if this fix the problem?
npm uninstall oxlint // if you installed in the project
npm cache clear --force
npm install --save-dev oxlint // if you installed in the project
npx oxlint
The binaries should be published:
- https://registry.npmjs.org/@oxlint%2fdarwin-x64/0.15.9
- https://registry.npmjs.org/@oxlint%2fwin32-x64/0.15.9
Try to download the taz
file und unpack it with tar -xvzf
Please let us know if the problem persists in https://github.com/oxc-project/oxc/releases/tag/oxlint_v0.15.10
I added a 3 minutes timer before publishing the main package e453be4