npm install -g code-server on Windows #7502
Unanswered
JarrettKolts
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have seen this question posted here before but I have yet to find an answer that works for me. I am currently running Windows 10 and I am wanting to use npm install -g code-server to install code-server globally on my computer so that I can use it for my projects. That being said, when I run npm install -g code-server I run into a few issues that I have not been able to find a way around. If anyone is able to help me I would really appreciate it.
When I run npm install -g code-server using git bash (and running as admin) I get these warnings and errors printed to my git bash terminal:
$ npm install -g code-server
npm warn Unknown user config "msvs_version". This will stop working in the next major version of npm.
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated npmlog@5.0.1: This package is no longer supported.
npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated are-we-there-yet@2.0.0: This package is no longer supported.
npm warn deprecated gauge@3.0.2: This package is no longer supported.
npm warn cleanup Failed to remove some directories [
npm warn cleanup [
npm warn cleanup 'C:\Users\Jarre\AppData\Roaming\npm\node_modules\code-server',
npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\Jarre\AppData\Roaming\npm\node_modules\code-server\node_modules\httpolyglot\test'] {
npm warn cleanup errno: -4048,
npm warn cleanup code: 'EPERM',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: 'C:\Users\Jarre\AppData\Roaming\npm\node_modules\code-server\node_modules\httpolyglot\test'
npm warn cleanup }
npm warn cleanup ],
npm warn cleanup [
npm warn cleanup '\\?\C:\Users\Jarre\AppData\Roaming\npm\node_modules\code-server',
npm warn cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\Jarre\AppData\Roaming\npm\node_modules\code-server\node_modules@tootallnate'] {
npm warn cleanup errno: -4048,
npm warn cleanup code: 'EPERM',
npm warn cleanup syscall: 'rmdir',
npm warn cleanup path: 'C:\Users\Jarre\AppData\Roaming\npm\node_modules\code-server\node_modules\@TooTallNate'
npm warn cleanup }
npm warn cleanup ]
npm warn cleanup ]
npm error code 1
npm error path C:\Users\Jarre\AppData\Roaming\npm\node_modules\code-server
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c sh ./postinstall.sh
npm error Installing Code dependencies...
npm error User agent: npm/11.6.0 node/v22.13.1 win32 x64 workspaces/false
npm error You may not have the required dependencies to build the native modules.
npm error Please see https://github.com/coder/code-server/blob/main/docs/npm.md
npm error npm warn Unknown cli config "--unsafe-perm". This will stop working in the next major version of npm.
npm error npm warn Unknown env config "msvs-version". This will stop working in the next major version of npm.
npm error npm warn Unknown user config "msvs_version". This will stop working in the next major version of npm.
npm error npm error code EBUSY
npm error npm error syscall rename
npm error npm error path C:\Users\Jarre\AppData\Roaming\npm\node_modules\code-server
npm error npm error dest C:\Users\Jarre\AppData\Roaming\npm\node_modules.code-server-iXF9W91w
npm error npm error errno -4082
npm error npm error EBUSY: resource busy or locked, rename 'C:\Users\Jarre\AppData\Roaming\npm\node_modules\code-server' -> 'C:\Users\Jarre\AppData\Roaming\npm\node_modules.code-server-iXF9W91w'
npm error npm error A complete log of this run can be found in: C:\Users\Jarre\AppData\Local\npm-cache_logs\2025-09-23T17_49_58_054Z-debug-0.log
npm error A complete log of this run can be found in: C:\Users\Jarre\AppData\Local\npm-cache_logs\2025-09-23T17_48_52_454Z-debug-0.log
If anyone could help me figure out why I am getting these errors I would really appreciate it. I force quit all processes that were running anything node related, and I didn't have any applications running on my computer other than git bash as admin. I have even tried installing scoop and running scoop bucket add extras && scoop install -g code-server but it says there is no manifest. I did a little more research and I see that code-server is not an item in their bucket list or extras bucket list. I have been at this for a while and I would really appreciate some help. Let me know if you have any more questions and I will get back to you as soon as I can, thanks.
Beta Was this translation helpful? Give feedback.
All reactions