Skip to content

mcp dev server.py Error: Cannot find module '../lib/cli.js' #780

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nevermet opened this issue May 22, 2025 · 1 comment
Open

mcp dev server.py Error: Cannot find module '../lib/cli.js' #780

nevermet opened this issue May 22, 2025 · 1 comment

Comments

@nevermet
Copy link

nevermet commented May 22, 2025

Dear all,

I am trying to run QuickStart but encountered this error and cannot move forward.

Could you tell me how I can resolve this error below, please?

Thanks in advance.


$ mcp dev server.py
node:internal/modules/cjs/loader:1146
throw err;
^

Error: Cannot find module '../lib/cli.js'
Require stack:

  • /home/username/.nvm/versions/node/v20.12.2/bin/npx
    (... omitted ...) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [ '/home/username/.nvm/versions/node/v20.12.2/bin/npx' ]
    }

Node.js v20.12.2
[05/22/25 00:00:00] ERROR Dev server failed

@ivanbelenky
Copy link

ivanbelenky commented May 22, 2025

If you look at the error youll see that npx is not found. Maybe install it? I don't know how you manage your node versions, but all >5.2 ship with npx apparently.

Maybe this comment applies "I found that when I install node using nvm for Windows, it doesn't download npx. So just install npx globally"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants