Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Installation error on Windows #7093

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
1 of 2 tasks
haozia816 opened this issue Nov 26, 2024 · 4 comments
Open
1 of 2 tasks

Installation error on Windows #7093

haozia816 opened this issue Nov 26, 2024 · 4 comments
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@haozia816
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

Windows version: Windows 10 LTSC 2021
Code-server error version: 4.95.1+,Below this version, installation is correct

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\vc\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.18.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 error code EBUSY
npm error npm error syscall rename
npm error npm error path C:\Users\vc\AppData\Roaming\npm\node_modules\code-server
npm error npm error dest C:\Users\vc\AppData\Roaming\npm\node_modules\.code-server-bnqWeVmV
npm error npm error errno -4082
npm error npm error EBUSY: resource busy or locked, rename 'C:\Users\vc\AppData\Roaming\npm\node_modules\code-server' -> 'C:\Users\vc\AppData\Roaming\npm\node_modules\.code-server-bnqWeVmV'
npm error npm error A complete log of this run can be found in: C:\Users\vc\AppData\Local\npm-cache\_logs\2024-11-26T09_30_44_696Z-debug-0.log
npm error A complete log of this run can be found in: C:\Users\vc\AppData\Local\npm-cache\_logs\2024-11-26T09_30_31_046Z-debug-0.log```

### Steps to Reproduce

1.npm install --global code-server


### Expected

1

### Actual

1

### Logs

```shell

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

Yes, this is also broken in native VS Code

Does this bug reproduce in GitHub Codespaces?

Yes, this is also broken in GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

@haozia816 haozia816 added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Nov 26, 2024
@code-asher
Copy link
Member

Technically we still need to work on official Windows support: #1397

That said, I am not sure what is going wrong here.

@MobCode100
Copy link

I'm having the same issue here, even the verbose logs does not help. The simplest way to make it work is to install code-server in WSL.

npm verbose cli C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node.exe C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\bin\npm-cli.js
npm info using [email protected]
npm info using [email protected]
npm verbose title npm install code-server
npm verbose argv "install" "--global" "code-server" "--loglevel" "verbose"
npm verbose logfile logs-max:10 dir:C:\Users\Quickemu\AppData\Local\npm-cache\_logs\2025-01-05T11_25_33_890Z-
npm verbose logfile C:\Users\Quickemu\AppData\Local\npm-cache\_logs\2025-01-05T11_25_33_890Z-debug-0.log
npm http fetch GET 200 https://registry.npmjs.org/code-server 1036ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/express 107ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/env-paths 130ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/http-proxy 133ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/compression 143ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/js-yaml 140ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/limiter 137ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/i18next 170ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/proxy-agent 63ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/qs 101ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 137ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/cookie-parser 769ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/safe-compare 212ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/argon2 774ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/ws 118ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/httpolyglot 784ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/xdg-basedir 130ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/semver 139ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/pem 793ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/rotating-file-stream 730ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/@coder%2flogger 1582ms (cache updated)
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 info run [email protected] install node_modules/code-server/node_modules/argon2 node-pre-gyp install --fallback-to-build
npm info run [email protected] install { code: 0, signal: null }
npm info run [email protected] postinstall node_modules/code-server sh ./postinstall.sh
npm info run [email protected] postinstall { code: 1, signal: null }
npm verbose stack Error: command failed
npm verbose stack     at promiseSpawn (C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:22:22)
npm verbose stack     at spawnWithShell (C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:124:10)
npm verbose stack     at promiseSpawn (C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:12:12)
npm verbose stack     at runScriptPkg (C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script-pkg.js:77:13)
npm verbose stack     at runScript (C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script.js:9:12)
npm verbose stack     at C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\rebuild.js:329:17
npm verbose stack     at run (C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:67:22)
npm verbose stack     at C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:84:9
npm verbose stack     at new Promise (<anonymous>)
npm verbose stack     at callLimit (C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:35:69)
npm verbose pkgid [email protected]
npm error code 1
npm error path C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\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.18.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 verbose cli C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node.exe C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\bin\npm-cli.js
npm error npm info using [email protected]
npm error npm info using [email protected]
npm error npm verbose title npm install
npm error npm verbose argv "install" "--unsafe-perm" "--omit" "dev"
npm error npm verbose logfile logs-max:10 dir:C:\Users\Quickemu\AppData\Local\npm-cache\_logs\2025-01-05T11_25_48_812Z-
npm error npm verbose logfile C:\Users\Quickemu\AppData\Local\npm-cache\_logs\2025-01-05T11_25_48_812Z-debug-0.log
npm error npm http fetch GET 200 https://registry.npmjs.org/@microsoft%2f1ds-core-js 1796ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@microsoft%2f1ds-post-js 1727ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@parcel%2fwatcher 1114ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@vscode%2fdeviceid 1736ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@vscode%2ficonv-lite-umd 1636ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@vscode%2fproxy-agent 1637ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@vscode%2fripgrep 1739ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@vscode%2fspdlog 1633ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@vscode%2ftree-sitter-wasm 1637ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@vscode%2fvscode-languagedetection 1640ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@vscode%2fwindows-process-tree 1738ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@vscode%2fwindows-registry 1634ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@xterm%2faddon-clipboard 1640ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@xterm%2fxterm 1630ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@xterm%2faddon-image 1744ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@xterm%2faddon-ligatures 1759ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@xterm%2faddon-search 1601ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@xterm%2faddon-serialize 1955ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@xterm%2faddon-unicode11 1732ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@xterm%2faddon-webgl 1737ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@xterm%2fheadless 1633ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/cookie 123ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/http-proxy-agent 167ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/https-proxy-agent 214ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/jschardet 805ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/kerberos 217ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/minimist 200ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/native-watchdog 817ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/node-pty 1042ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/tas-client-umd 797ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/vscode-oniguruma 102ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/vscode-regexpp 815ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/vscode-textmate 204ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/yauzl 118ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/yazl 185ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/is-glob 180ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/micromatch 185ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/node-gyp-build 126ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/node-addon-api 140ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@microsoft%2fdynamicproto-js 354ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@microsoft%2fapplicationinsights-shims 360ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@microsoft%2fdynamicproto-js 367ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/uuid 66ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/fs-extra 67ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/debug 67ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/agent-base 60ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@microsoft%2fapplicationinsights-core-js 437ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/undici 97ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/yauzl 38ms (cache hit)
npm error npm http fetch GET 200 https://registry.npmjs.org/@microsoft%2fapplicationinsights-shims 477ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/socks-proxy-agent 81ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/node-addon-api 22ms (cache hit)
npm error npm http fetch GET 200 https://registry.npmjs.org/node-addon-api 25ms (cache hit)
npm error npm http fetch GET 200 https://registry.npmjs.org/proxy-from-env 64ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/mkdirp 59ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/agent-base 14ms (cache hit)
npm error npm http fetch GET 200 https://registry.npmjs.org/debug 14ms (cache hit)
npm error npm http fetch GET 200 https://registry.npmjs.org/js-base64 88ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@tootallnate%2fonce 301ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/prebuild-install 119ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/buffer-crc32 206ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/pend 185ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/bindings 721ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/font-ligatures 692ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/font-finder 703ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/bindings 744ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@vscode%2fwindows-ca-certs 1598ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/tslib 122ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/@microsoft%2fapplicationinsights-shims 15ms (cache hit)
npm error npm http fetch GET 200 https://registry.npmjs.org/picomatch 61ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/braces 160ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/is-extglob 164ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/jsonfile 100ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/universalify 101ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/graceful-fs 108ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/ms 52ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/socks 69ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/fd-slicer 54ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/file-uri-to-path 65ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/lru-cache 58ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/opentype.js 86ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/get-system-fonts 688ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/promise-stream-reader 701ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/yallist 58ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/tiny-inflate 65ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/mkdirp-classic 68ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/github-from-package 70ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/detect-libc 75ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/expand-template 78ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/napi-build-utils 88ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/pump 90ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/node-abi 103ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/rc 56ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/tunnel-agent 65ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/tar-fs 69ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/simple-get 77ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/fill-range 52ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/to-regex-range 47ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/is-number 55ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/semver 36ms (cache hit)
npm error npm http fetch GET 200 https://registry.npmjs.org/end-of-stream 56ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/once 58ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/deep-extend 67ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/decompress-response 81ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/strip-json-comments 86ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/once 56ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 16ms (cache hit)
npm error npm http fetch GET 200 https://registry.npmjs.org/chownr 46ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/ini 107ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/tar-stream 50ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/simple-concat 65ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/once 17ms (cache hit)
npm error npm http fetch GET 200 https://registry.npmjs.org/wrappy 53ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/mimic-response 67ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/ip-address 65ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/smart-buffer 68ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/jsbn 58ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/sprintf-js 59ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/bl 61ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/readable-stream 62ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/fs-constants 66ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/inherits 70ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/inherits 19ms (cache hit)
npm error npm http fetch GET 200 https://registry.npmjs.org/readable-stream 20ms (cache hit)
npm error npm http fetch GET 200 https://registry.npmjs.org/util-deprecate 46ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/string_decoder 47ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/buffer 58ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/base64-js 49ms (cache updated)
npm error npm http fetch GET 200 https://registry.npmjs.org/ieee754 61ms (cache updated)
npm error npm verbose stack Error: EBUSY: resource busy or locked, rename 'C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\code-server' -> 'C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\.code-server-bqrIUomL'
npm error npm verbose stack     at async Object.rename (node:internal/fs/promises:782:10)
npm error npm verbose stack     at async moveFile (C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\node_modules\@npmcli\fs\lib\move-file.js:30:5)
npm error npm verbose stack     at async Promise.allSettled (index 0)
npm error npm verbose stack     at async [reifyPackages] (C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:325:11)
npm error npm verbose stack     at async Arborist.reify (C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\reify.js:142:5)
npm error npm verbose stack     at async Install.exec (C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\lib\commands\install.js:150:5)
npm error npm verbose stack     at async Npm.exec (C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\lib\npm.js:207:9)
npm error npm verbose stack     at async module.exports (C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\npm\lib\cli\entry.js:74:5)
npm error npm error code EBUSY
npm error npm error syscall rename
npm error npm error path C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\code-server
npm error npm error dest C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\.code-server-bqrIUomL
npm error npm error errno -4082
npm error npm error EBUSY: resource busy or locked, rename 'C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\code-server' -> 'C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\.code-server-bqrIUomL'
npm error npm verbose cwd C:\Users\Quickemu\.nvm\versions\node\v20.18.1\bin\node_modules\code-server\lib\vscode
npm error npm verbose os Windows_NT 10.0.19045
npm error npm verbose node v20.18.1
npm error npm verbose npm  v10.8.2
npm error npm verbose exit -4082
npm error npm verbose code -4082
npm error npm error A complete log of this run can be found in: C:\Users\Quickemu\AppData\Local\npm-cache\_logs\2025-01-05T11_25_48_812Z-debug-0.log
npm verbose cwd C:\Users\Quickemu
npm verbose os Windows_NT 10.0.19045
npm verbose node v20.18.1
npm verbose npm  v10.8.2
npm verbose exit 1
npm verbose code 1
npm error A complete log of this run can be found in: C:\Users\Quickemu\AppData\Local\npm-cache\_logs\2025-01-05T11_25_33_890Z-debug-0.log

@jobtijhuis
Copy link

I am having the same problem. I guess I will give WSL2 a try, but ideally installing directly through npm would be easier.

@kenaroik kenaroik marked this as a duplicate of #7280 Mar 25, 2025
@DRSDavidSoft
Copy link

Here's my logs (click to expand)
C:\Windows\System32
λ npm install --global code-server --loglevel verbose

npm verbose cli C:\development\nodejs\node.exe C:\development\nodejs\node_modules\npm\bin\npm-cli.js
npm info using [email protected]
npm info using [email protected]
npm verbose title npm install code-server
npm verbose argv "install" "--global" "code-server" "--loglevel" "verbose"
npm verbose logfile logs-max:10 dir:C:\Users\David\AppData\Local\npm-cache\_logs\2025-05-07T05_10_16_153Z-
npm verbose logfile C:\Users\David\AppData\Local\npm-cache\_logs\2025-05-07T05_10_16_153Z-debug-0.log
npm http fetch GET 200 https://registry.npmjs.org/code-server 2048ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/qs 148ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/safe-buffer 136ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/xdg-basedir 141ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/env-paths 533ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/compression 607ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/semver 621ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/argon2 692ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/proxy-agent 698ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/js-yaml 701ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/pem 774ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/limiter 775ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/safe-compare 355ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/split2 850ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/yarn 933ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/http-proxy 1093ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/express 1158ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/ws 1179ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/cookie-parser 570ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/httpolyglot 1380ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/rotating-file-stream 871ms (cache updated)
npm http fetch GET 200 https://registry.npmjs.org/@coder%2flogger 1417ms (cache updated)
npm http cache code-server@https://registry.npmjs.org/code-server/-/code-server-4.3.0.tgz 0ms (cache hit)
npm http cache yarn@https://registry.yarnpkg.com/yarn/-/yarn-1.22.11.tgz 0ms (cache hit)
npm http cache xdg-basedir@https://registry.yarnpkg.com/xdg-basedir/-/xdg-basedir-4.0.0.tgz 0ms (cache hit)
npm http cache semver@https://registry.yarnpkg.com/semver/-/semver-7.3.5.tgz 0ms (cache hit)
npm http cache split2@https://registry.yarnpkg.com/split2/-/split2-4.1.0.tgz 0ms (cache hit)
npm http cache ws@https://registry.yarnpkg.com/ws/-/ws-8.2.0.tgz 0ms (cache hit)
npm http cache lru-cache@https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz 0ms (cache hit)
npm http cache which@https://registry.yarnpkg.com/which/-/which-2.0.2.tgz 0ms (cache hit)
npm http cache safe-compare@https://registry.yarnpkg.com/safe-compare/-/safe-compare-1.1.4.tgz 0ms (cache hit)
npm http cache safe-buffer@https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz 0ms (cache hit)
npm http cache rotating-file-stream@https://registry.yarnpkg.com/rotating-file-stream/-/rotating-file-stream-3.0.0.tgz 0ms (cache hit)
npm http cache qs@https://registry.yarnpkg.com/qs/-/qs-6.10.3.tgz 0ms (cache hit)
npm http cache proxy-agent@https://registry.yarnpkg.com/proxy-agent/-/proxy-agent-5.0.0.tgz 0ms (cache hit)
npm http cache js-yaml@https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz 0ms (cache hit)
npm http cache pem@https://registry.yarnpkg.com/pem/-/pem-1.14.4.tgz 0ms (cache hit)
npm http cache httpolyglot@https://registry.yarnpkg.com/httpolyglot/-/httpolyglot-0.1.2.tgz 0ms (cache hit)
npm http cache http-proxy@https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.1.tgz 0ms (cache hit)
npm http cache express@https://registry.yarnpkg.com/express/-/express-5.0.0-alpha.8.tgz 0ms (cache hit)
npm http cache qs@https://registry.yarnpkg.com/qs/-/qs-6.7.0.tgz 0ms (cache hit)
npm http cache limiter@https://registry.yarnpkg.com/limiter/-/limiter-1.1.5.tgz 0ms (cache hit)
npm http cache debug@https://registry.yarnpkg.com/debug/-/debug-3.1.0.tgz 0ms (cache hit)
npm http cache env-paths@https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.1.tgz 0ms (cache hit)
npm http cache @coder/logger@https://registry.yarnpkg.com/@coder/logger/-/logger-1.1.16.tgz 0ms (cache hit)
npm http cache debug@https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz 0ms (cache hit)
npm http cache bytes@https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz 0ms (cache hit)
npm http cache compression@https://registry.yarnpkg.com/compression/-/compression-1.7.4.tgz 0ms (cache hit)
npm http cache argon2@https://registry.yarnpkg.com/argon2/-/argon2-0.28.4.tgz 0ms (cache hit)
npm http cache cookie-parser@https://registry.yarnpkg.com/cookie-parser/-/cookie-parser-1.4.5.tgz 0ms (cache hit)
npm info run [email protected] install node_modules/code-server/node_modules/argon2 node-gyp rebuild
npm info run [email protected] install { code: 1, signal: null }
npm verbose stack Error: command failed
npm verbose stack     at promiseSpawn (C:\development\nodejs\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:22:22)
npm verbose stack     at spawnWithShell (C:\development\nodejs\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:124:10)
npm verbose stack     at promiseSpawn (C:\development\nodejs\node_modules\npm\node_modules\@npmcli\promise-spawn\lib\index.js:12:12)
npm verbose stack     at runScriptPkg (C:\development\nodejs\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script-pkg.js:79:13)
npm verbose stack     at runScript (C:\development\nodejs\node_modules\npm\node_modules\@npmcli\run-script\lib\run-script.js:9:12)
npm verbose stack     at C:\development\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\arborist\rebuild.js:331:17
npm verbose stack     at run (C:\development\nodejs\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:67:22)
npm verbose stack     at C:\development\nodejs\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:84:9
npm verbose stack     at new Promise (<anonymous>)
npm verbose stack     at callLimit (C:\development\nodejs\node_modules\npm\node_modules\promise-call-limit\dist\commonjs\index.js:35:69)
npm verbose pkgid [email protected]
npm error code 1
npm error path C:\development\nodejs\node_modules\code-server\node_modules\argon2
npm error command failed
npm error command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuild
npm error gyp info it worked if it ends with ok
npm error gyp verb cli [
npm error gyp verb cli 'C:\\development\\nodejs\\node.exe',
npm error gyp verb cli 'C:\\development\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js',
npm error gyp verb cli 'rebuild'
npm error gyp verb cli ]
npm error gyp info using [email protected]
npm error gyp info using [email protected] | win32 | x64
npm error gyp verb clean removing "build" directory
npm error gyp verb find Python Python is not set from command line or npm configuration
npm error gyp verb find Python Python is not set from environment variable PYTHON
npm error gyp verb find Python checking if the py launcher can be used to find Python 3
npm error gyp verb find Python - executing "py.exe" to get Python 3 executable path
npm error gyp verb find Python - executable path is "C:\Python312\python.exe"
npm error gyp verb find Python - executing "C:\Python312\python.exe" to get version
npm error gyp verb find Python - version is "3.12.2"
npm error gyp info find Python using Python version 3.12.2 found at "C:\Python312\python.exe"
npm error gyp verb get node dir no --target version specified, falling back to host node version: 22.11.0
npm error gyp verb install input version string "22.11.0"
npm error gyp verb install installing version: 22.11.0
npm error gyp verb install --ensure was passed, so won't reinstall if already installed
npm error gyp verb install version is already installed, need to check "installVersion"
npm error gyp verb got "installVersion" 11
npm error gyp verb needs "installVersion" 11
npm error gyp verb install version is good
npm error gyp verb on Windows; need to check node.lib
npm error gyp verb get node dir target node version installed: 22.11.0
npm error gyp verb build dir attempting to create "build" dir: C:\development\nodejs\node_modules\code-server\node_modules\argon2\build
npm error gyp verb build dir "build" dir needed to be created? Yes
npm error gyp verb find VS msvs_version not set from command line or npm config
npm error gyp verb find VS VCINSTALLDIR not set, not running in VS Command Prompt
npm error gyp verb find VS could not use PowerShell to find Visual Studio 2017 or newer, try re-running with '--loglevel silly' for more details.
npm error gyp verb find VS
npm error gyp verb find VS Failure details: undefined
npm error gyp verb find VS checking VS2022 (17.13.35931.197) found at:
npm error gyp verb find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm error gyp verb find VS - found "Visual Studio C++ core features"
npm error gyp verb find VS - found VC++ toolset: v143
npm error gyp verb find VS - found Windows SDK: 10.0.22621.0
npm error gyp info find VS using VS2022 (17.13.35931.197) found at:
npm error gyp info find VS "C:\Program Files\Microsoft Visual Studio\2022\Community"
npm error gyp info find VS run with --verbose for detailed information
npm error gyp verb build/config.gypi creating config file
npm error gyp verb build/config.gypi writing out config file: C:\development\nodejs\node_modules\code-server\node_modules\argon2\build\config.gypi
npm error gyp verb config.gypi checking for gypi file: C:\development\nodejs\node_modules\code-server\node_modules\argon2\config.gypi
npm error gyp verb common.gypi checking for gypi file: C:\development\nodejs\node_modules\code-server\node_modules\argon2\common.gypi
npm error gyp verb gyp gyp format was not specified; forcing "msvs"
npm error gyp info spawn C:\Python312\python.exe
npm error gyp info spawn args [
npm error gyp info spawn args 'C:\\development\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\gyp\\gyp_main.py',
npm error gyp info spawn args 'binding.gyp',
npm error gyp info spawn args '-f',
npm error gyp info spawn args 'msvs',
npm error gyp info spawn args '-I',
npm error gyp info spawn args 'C:\\development\\nodejs\\node_modules\\code-server\\node_modules\\argon2\\build\\config.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args 'C:\\development\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\addon.gypi',
npm error gyp info spawn args '-I',
npm error gyp info spawn args 'C:\\Users\\David\\AppData\\Local\\node-gyp\\Cache\\22.11.0\\include\\node\\common.gypi',
npm error gyp info spawn args '-Dlibrary=shared_library',
npm error gyp info spawn args '-Dvisibility=default',
npm error gyp info spawn args '-Dnode_root_dir=C:\\Users\\David\\AppData\\Local\\node-gyp\\Cache\\22.11.0',
npm error gyp info spawn args '-Dnode_gyp_dir=C:\\development\\nodejs\\node_modules\\npm\\node_modules\\node-gyp',
npm error gyp info spawn args '-Dnode_lib_file=C:\\\\Users\\\\David\\\\AppData\\\\Local\\\\node-gyp\\\\Cache\\\\22.11.0\\\\<(target_arch)\\\\node.lib',
npm error gyp info spawn args '-Dmodule_root_dir=C:\\development\\nodejs\\node_modules\\code-server\\node_modules\\argon2',
npm error gyp info spawn args '-Dnode_engine=v8',
npm error gyp info spawn args '--depth=.',
npm error gyp info spawn args '--no-parallel',
npm error gyp info spawn args '--generator-output',
npm error gyp info spawn args 'C:\\development\\nodejs\\node_modules\\code-server\\node_modules\\argon2\\build',
npm error gyp info spawn args '-Goutput_dir=.'
npm error gyp info spawn args ]
npm error node:internal/modules/cjs/loader:1252
npm error   throw err;
npm error   ^
npm error
npm error Error: Cannot find module 'node-addon-api'
npm error Require stack:
npm error - C:\development\nodejs\node_modules\code-server\node_modules\argon2\[eval]
npm error     at Function._resolveFilename (node:internal/modules/cjs/loader:1249:15)
npm error     at Function._load (node:internal/modules/cjs/loader:1075:27)
npm error     at TracingChannel.traceSync (node:diagnostics_channel:315:14)
npm error     at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
npm error     at Module.require (node:internal/modules/cjs/loader:1340:12)
npm error     at require (node:internal/modules/helpers:141:16)
npm error     at [eval]:1:1
npm error     at runScriptInThisContext (node:internal/vm:209:10)
npm error     at node:internal/process/execution:118:14
npm error     at [eval]-wrapper:6:24 {
npm error   code: 'MODULE_NOT_FOUND',
npm error   requireStack: [
npm error     'C:\\development\\nodejs\\node_modules\\code-server\\node_modules\\argon2\\[eval]'
npm error   ]
npm error }
npm error
npm error Node.js v22.11.0
npm error gyp: Call to 'node -p "require('node-addon-api').include"' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
npm error gyp ERR! configure error
npm error gyp ERR! stack Error: `gyp` failed with exit code: 1
npm error gyp ERR! stack at ChildProcess.<anonymous> (C:\development\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:317:18)
npm error gyp ERR! stack at ChildProcess.emit (node:events:518:28)
npm error gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:293:12)
npm error gyp ERR! System Windows_NT 10.0.26100
npm error gyp ERR! command "C:\\development\\nodejs\\node.exe" "C:\\development\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
npm error gyp ERR! cwd C:\development\nodejs\node_modules\code-server\node_modules\argon2
npm error gyp ERR! node -v v22.11.0
npm error gyp ERR! node-gyp -v v11.2.0
npm error gyp ERR! not ok
npm verbose cwd C:\Windows\System32
npm verbose os Windows_NT 10.0.26100
npm verbose node v22.11.0
npm verbose npm  v11.3.0
npm verbose exit 1
npm verbose code 1
npm error A complete log of this run can be found in: C:\Users\David\AppData\Local\npm-cache\_logs\2025-05-07T05_10_16_153Z-debug-0.log

📜 2025-05-07T05_10_16_153Z-debug-0.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

5 participants