-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Issues running code-server locally. #3327
-
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
).).
Beta Was this translation helpful? Give feedback.
All reactions
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
-
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.
Beta Was this translation helpful? Give feedback.
All reactions
-
Same happens to me ^. We need to document this in CONTRIBUTING.md
. I'll make a note.
Beta Was this translation helpful? Give feedback.
All reactions
-
Beta Was this translation helpful? Give feedback.
All reactions
-
Thank you so much! It worked live a charm
Beta Was this translation helpful? Give feedback.
All reactions
-
🎉 3
-
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?
Beta Was this translation helpful? Give feedback.
All reactions
-
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.
Beta Was this translation helpful? Give feedback.