Skip to content

Installing Code-Server on Windows with NPM fails since version 4.95.1 #7280

Closed as duplicate of#7093
@kenaroik

Description

@kenaroik

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Local OS: Windows Server 2019
  • code-server: >= 4.95.1

Steps to Reproduce

  1. Install NodeJS 20.18.1
  2. Install Python 3.12
  3. Install Git
  4. Install VS 2022 Build Tools with Spectre mitigated libs.
  5. Install Node-Gyp with NPM
  6. Install Code-Server >= 4.95.1 with NPM

Expected

I expect that it works with >= 4.95.1 like it works with 4.93.1.

Actual

With my setup script I testet several versions.

This does not work. Executed in PowerShell.

`. "C:\Program Files\Git\bin\bash.exe" -c """npm"" install [email protected] -g --unsafe-perm"

This is the last one that works. Executed in PowerShell.

. "C:\Program Files\Git\bin\bash.exe" -c """npm"" install [email protected] -g --unsafe-perm"

Logs

npm warn deprecated [email protected]: 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 [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: Rimraf versions prior to v4 are no longer supported
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported
npm warn deprecated [email protected]: This package is no longer supported.
npm warn deprecated [email protected]: This package is no longer supported.
npm error code 1
npm error path C:\Users\Administrator\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/10.8.2 node/v20.19.0 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 error code EBUSY
npm error npm error syscall rename
npm error npm error path C:\Users\Administrator\AppData\Roaming\npm\node_modules\code-server
npm error npm error dest C:\Users\Administrator\AppData\Roaming\npm\node_modules\.code-server-acCLOgym
npm error npm error errno -4082
npm error npm error EBUSY: resource busy or locked, rename 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\code-server' -> 'C:\Users\Administrator\AppData\Roaming\npm\node_modules\.code-server-acCLOgym'
npm error npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2025-03-25T08_48_41_315Z-debug-0.log
npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2025-03-25T08_48_34_597Z-debug-0.log

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

  • Not tested.

Does this bug reproduce in GitHub Codespaces?

  • Not tested.

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

I also tested on 2 Windows 11 machines. Always the same outcome: 4.93.1 works, >= 4.95.1 does not work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingos-windowsWindows relatedtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions