vscode: Extension fails with pnpm command not found
I previously commented on microsoft/vscode-eslint#1462 but OP’s problem was fixed so the issue closed. My problem persists even after a restart, so I am creating a new issue.
I have pnpm installed on Linux via npm install -g pnpm
. pnpm works fine in the vscode integrated terminal and standalone terminals.
The extension fails with the following error on load:
Uncaught exception received.
Error: Command failed: pnpm root -g
/bin/sh: line 1: pnpm: command not found
at checkExecSyncError (node:child_process:835:11)
at execSync (node:child_process:909:15)
at node:electron/js2c/asar_bundle:5:12692
at Object.get (/home/doubleplusc/.vscode-oss/extensions/dbaeumer.vscode-eslint-2.2.2/server/out/eslintServer.js:1:172258)
at /home/doubleplusc/.vscode-oss/extensions/dbaeumer.vscode-eslint-2.2.2/server/out/eslintServer.js:1:174308
at /home/doubleplusc/.vscode-oss/extensions/dbaeumer.vscode-eslint-2.2.2/server/out/eslintServer.js:1:174323
pnpm root -g
returns
/home/doubleplusc/.local/share/pnpm/global/5/node_modules
Thanks!
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 7
- Comments: 40 (15 by maintainers)
Ok, I solved the problem:
I removed the
"eslint.packageManager": "pnpm"
line from my settings file and voilà