incalculable-caravan-14883
11/09/2024, 8:49 PMcorepack
when I try to run pyright
via `pants check ::`:
12:48:11.26 [INFO] Starting: Run Pyright on 69 files.
12:48:11.26 [INFO] Starting: Force venv to materialize
12:48:11.50 [INFO] Completed: Run Pyright on 69 files.
12:48:11.51 [INFO] Completed: Force venv to materialize
12:48:11.52 [ERROR] Completed: Typecheck using Pyright - (environment:local_macos, pyright) - pyright failed (exit code 1).
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module './corepack'
Require stack:
- /private/var/folders/j4/zbnykcvx1912qpf0j7d99r0h0000gn/T/immutable_inputsfvwQi8/.tmpid9G1q/b9a67500c3938e662aca15db7316b2f0556756c68165f2bb668cdab99183bacb/node-v16.15.0-darwin-arm64/lib/node_modules/corepack/dist/npm.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/private/var/folders/j4/zbnykcvx1912qpf0j7d99r0h0000gn/T/immutable_inputsfvwQi8/.tmpid9G1q/b9a67500c3938e662aca15db7316b2f0556756c68165f2bb668cdab99183bacb/node-v16.15.0-darwin-arm64/lib/node_modules/corepack/dist/npm.js:2:1)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/private/var/folders/j4/zbnykcvx1912qpf0j7d99r0h0000gn/T/immutable_inputsfvwQi8/.tmpid9G1q/b9a67500c3938e662aca15db7316b2f0556756c68165f2bb668cdab99183bacb/node-v16.15.0-darwin-arm64/lib/node_modules/corepack/dist/npm.js'
]
}
ā pyright failed.
Has anyone run into something similar? What could be causing this?
(running pyright
by itself works fine)
UPDATE: In a very strange turn of events, when I tried pants --keep-sandboxes=on_failure check ::
to dig into the issue, it worked fine? and now a regular pants check ::
also works fine again? Will keep the post as a FYI for folks. š¤·wide-midnight-78598
11/10/2024, 1:09 AMpnpm
via corepack suddenly disappeared. I use that every day, but today it was gone.
I had to re-enable it. Was so strange