Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Issues running code-server locally. #3327

Answered by code-asher
emailvenkatm asked this question in Q&A
Discussion options

Hello,

I am able to start the code-server locally using install and it is working perfectly. But I try to run it by closing the repo and running yarn & yarn watch. It is loading fine but not able to open integrated terminal. Getting the below error.

Tried troubleshooting this by switching to different node versions but no luck. Can some one please help me on how to fix this issue.

Error:

The terminal process failed to launch: A native exception occurred during launch (The module '~/code-server/lib/vscode/node_modules/node-pty/build/Release/pty.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 87. This version of Node.js requires NODE_MODULE_VERSION 83. Please try re-compiling or re-installing the module (for instance, using npm rebuild or npm install).).

You must be logged in to vote

I usually fix this by going into lib/vscode and running npm rebuild.

It seems to happen when the modules were installed with one version of Node and code-server is ran with a different version but the weird thing is that it happens to me even if I only have one version of Node installed so I'm not sure what's going on.

Replies: 3 comments 3 replies

Comment options

I usually fix this by going into lib/vscode and running npm rebuild.

It seems to happen when the modules were installed with one version of Node and code-server is ran with a different version but the weird thing is that it happens to me even if I only have one version of Node installed so I'm not sure what's going on.

You must be logged in to vote
2 replies
Comment options

Same happens to me ^. We need to document this in CONTRIBUTING.md. I'll make a note.

Comment options

Answer selected by jsjoeio
Comment options

Thank you so much! It worked live a charm

You must be logged in to vote
0 replies
Comment options

I want to run the project locally in windows, but I get an error. How do you run it locally after you pull the code?

You must be logged in to vote
1 reply
Comment options

You can either use yarn && yarn watch or build it (see https://github.com/cdr/code-server/blob/main/docs/CONTRIBUTING.md#development-workflow).

However I'm not sure our scripts will run on Windows. I don't think anyone has tried yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

AltStyle によって変換されたページ (->オリジナル) /