You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NPX not available to start MCP server, but available in VSCode Terminal #4791
- OS: Windows 11
- Continue version: pre-release
- IDE version: 1.98.2
- Model: not relevant
- config:
OR link to assistant in Continue hub:
Description
The image below shows the issue the best.
npx is available in the system and in the terminal in VSCode, but the continue.dev can't see it to run npx for the brave search MPC.
To reproduce
No response
Log output
Reacted by Yuriy, swiftsword94, Charles Allen, Ajinkya Borade, Josh Holmer, whincwu, Roman, Anoesj Sadraee, Michael Geyer, Jeff Thompson and 7 more
I found a workaround to this. Go to your assistant definition on the web and define the MCP server manually, ensuring you run it with cmd instead of powershell, as such:
On Mac/Linux, this unfortunately does not work (as obviously cmd.exe is not available). Also with something like sh for the command with -c as the argument does not work (for me at least)
Problem
When configuring the Framelink Figma MCP server, using "command": "npx" results in “npx not found.” If you specify the full path to npx, it then complains that node is not found. This makes it a dead end on some setups (e.g., when using nvm or non-global Node.js installs).
Workaround
Instead of calling npx directly, use a shell script that sets up the correct Node.js environment and then runs the command. Update your server config
I had the same issue on linux using vscodium-wayland.
The issue appeared to be privilege related. I noticed I was able to set the command to bash or zsh and have it run npx via its absolute path (pulled from which npx) (other attempts to run npx directly or via other commands would resolve to command not found)
Part of the output when trying to run npx via bash/zsh appeared to be privilege related so I ran vscodium as root (which is not recommended) with vscodium --no-sandox --user-data-dir
After running as root I was able to use other commands again like npx and setup the MCP. I didn't have to play around with proxy-ing npx through bash or zsh, etc.
For additional context: I setup the MCP in the config.yaml file
running into this same issue i with rider 2025.2.2.1 plugin 1.0.46 - i am not sure from this thread if this issue is resolved or what the actual work around is ( dopey me )
@dosubot you are either missing labels for macOS and Linux or should remove specific one for Windows. @eranco74 issue is currently resolved only for Windows.
Hi @jagomf! I'm Dosu and I’m helping the continue team.
You're right—the issue is currently resolved only for Windows, while macOS and Linux are still affected. The labels should reflect this so users on all platforms are aware of the current status. Thanks for pointing out the need to update or correct the platform labels.
Hey everyone! After analyzing this issue, I've identified a clear solution that would help all the users experiencing this problem across Windows, macOS, and Linux.
The Problem
The root cause is that Continue's child processes don't inherit the full PATH environment that includes Node.js binaries - especially when using version managers like nvm, fnm, or volta. This is why npx works in your terminal but not in Continue.
The Solution Path
We need to enhance PATH discovery in 3 focused areas:
core/util/shellPath.ts - Enhance getEnvPathFromUserShell() to:
Add Windows support (currently returns undefined on Windows!)
Search common Node.js installation directories
Support fish shell and other shells beyond bash/zsh
Auto-detect nvm, fnm, volta, asdf installations
core/util/commandUtils.ts (new file) - Add utilities to:
Find commands using which/where
Check common installation paths as fallback
Resolve Windows batch files (.cmd/.bat)
core/context/mcp/MCPConnection.ts - Minor update to:
Use the enhanced PATH from step 1
Apply command resolution from step 2
Good First Contribution
Clear scope: The changes are isolated to specific files
Testable: Each component can be unit tested independently
High impact: Fixes a critical issue affecting many users
Learning opportunity: Great way to understand how Continue handles system integration
Implementation Notes
The core logic is adding path detection for common Node.js locations:
macOS/Linux: ~/.nvm, ~/.fnm, /opt/homebrew/bin, etc.
Getting Started
The existing Windows batch command handling in MCPConnection already works
The main work is enhancing PATH discovery for all platforms
Tests can use vitest (already in the project) to verify the path detection
There are many users blocked by this issue, and a contribution here would be greatly appreciated by the community. This fix would unblock everyone who wants to use MCP servers but is stuck with the "npx not found" error.
@psimsa@Jennifer249@kpchen104 - your workarounds show you understand the problem well - would any of you be interested in turning those insights into a proper fix?
@germgerm I believe JB launches under a different scope than VS Code so the errors there are different. Any chance you're able to try it out on VSC to verify this in your case?
How come after more than 1 year, this issue still exists? For me it started very recently after latest VS Code update. earlier it was working just fine
Activity
zjh-nuc-AIOT commentedon Mar 25, 2025
me too
limslmao commentedon Mar 31, 2025
I've tried to adjust the command to point to the actual path, but I still cannot run with npx.
FRitaRr commentedon Apr 3, 2025
Same problem for me, plese help
psimsa commentedon Apr 7, 2025
I found a workaround to this. Go to your assistant definition on the web and define the MCP server manually, ensuring you run it with
cmdinstead of powershell, as such:AkifAycicek commentedon Apr 15, 2025
I used this after npx cli not found error
Vscode continue config
kije commentedon May 5, 2025
Same problem here.
Patrick-Erichsen commentedon May 5, 2025
Hi all, apologies for the delay here, we'll be digging into this shortly.
In the meantime, the solution from @ozshen in this post worked:
kije commentedon May 5, 2025
On Mac/Linux, this unfortunately does not work (as obviously cmd.exe is not available). Also with something like
shfor the command with-cas the argument does not work (for me at least)eranco74 commentedon May 8, 2025
I have a similar problem on linux.
MCP servers suing npx or docker showing this:
Note that the same MCP servers work with copilot (on vscode)
This is the config:
10 remaining items
kpchen104 commentedon Jul 10, 2025
found a "MAYBE" workaround way.
Problem
When configuring the Framelink Figma MCP server, using "command": "npx" results in “npx not found.” If you specify the full path to npx, it then complains that node is not found. This makes it a dead end on some setups (e.g., when using nvm or non-global Node.js installs).
Workaround
Instead of calling npx directly, use a shell script that sets up the correct Node.js environment and then runs the command. Update your server config
AlefAlfa commentedon Jul 20, 2025
Thank you @kpchen104 it worked on MacOS 🥳
Basketballforce commentedon Aug 3, 2025
I had the same issue on linux using vscodium-wayland.
The issue appeared to be privilege related. I noticed I was able to set the command to
bashorzshand have it runnpxvia its absolute path (pulled fromwhich npx) (other attempts to run npx directly or via other commands would resolve tocommand not found)Part of the output when trying to run npx via bash/zsh appeared to be privilege related so I ran vscodium as root (which is not recommended) with
vscodium --no-sandox --user-data-dirAfter running as root I was able to use other commands again like npx and setup the MCP. I didn't have to play around with proxy-ing npx through bash or zsh, etc.
For additional context: I setup the MCP in the
config.yamlfiledocs: improve configuration docs and add PR template
germgerm commentedon Oct 4, 2025
running into this same issue i with rider 2025.2.2.1 plugin 1.0.46 - i am not sure from this thread if this issue is resolved or what the actual work around is ( dopey me )
jagomf commentedon Oct 16, 2025
@dosubot you are either missing labels for macOS and Linux or should remove specific one for Windows.
@eranco74 issue is currently resolved only for Windows.
dosubot commentedon Oct 16, 2025
Hi @jagomf! I'm Dosu and I’m helping the continue team.
You're right—the issue is currently resolved only for Windows, while macOS and Linux are still affected. The labels should reflect this so users on all platforms are aware of the current status. Thanks for pointing out the need to update or correct the platform labels.
To reply, just mention @dosu.
Docs are dead. Just use Dosu.
bdougie commentedon Oct 17, 2025
Hey everyone! After analyzing this issue, I've identified a clear solution that would help all the users experiencing this problem across Windows, macOS, and Linux.
The Problem
The root cause is that Continue's child processes don't inherit the full PATH environment that includes Node.js binaries - especially when using version managers like nvm, fnm, or volta. This is why
npxworks in your terminal but not in Continue.The Solution Path
We need to enhance PATH discovery in 3 focused areas:
core/util/shellPath.ts- EnhancegetEnvPathFromUserShell()to:core/util/commandUtils.ts(new file) - Add utilities to:which/wherecore/context/mcp/MCPConnection.ts- Minor update to:Good First Contribution
Implementation Notes
The core logic is adding path detection for common Node.js locations:
%APPDATA%\npm,%ProgramFiles%\nodejs, Scoop paths~/.nvm,~/.fnm,/opt/homebrew/bin, etc.Getting Started
MCPConnectionalready worksThere are many users blocked by this issue, and a contribution here would be greatly appreciated by the community. This fix would unblock everyone who wants to use MCP servers but is stuck with the "npx not found" error.
@psimsa @Jennifer249 @kpchen104 - your workarounds show you understand the problem well - would any of you be interested in turning those insights into a proper fix?
cc @Patrick-Erichsen for a second review on this.
Patrick-Erichsen commentedon Oct 20, 2025
@germgerm I believe JB launches under a different scope than VS Code so the errors there are different. Any chance you're able to try it out on VSC to verify this in your case?
clint911 commentedon Jan 2, 2026
Still having this issue in vscode on an ubuntu ssh session,none of the above fixes work.
dashko commentedon Jan 25, 2026
I am still having the issue with the pre-release version on Debian Linux. None of the above fixes worked.
pks1989 commentedon Mar 2, 2026
Just reloading VS code after install next js dev tools helps me
vorasudh commentedon Jul 8, 2026
How come after more than 1 year, this issue still exists? For me it started very recently after latest VS Code update. earlier it was working just fine
dominik-kropp commentedon Jul 24, 2026
Same, the MCP server worked before but after upgrading to Node.js 24 in my devcontainer, it started throwing this error.