Installation error on Windows
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Quiet
- Tech stack
- node.js, typescript
- Domain
- build-system, operating-systems
Research direction
Start by reproducing npm install --global code-server on Windows 10 LTSC with version 4.95.1, then read postinstall.sh and docs/npm.md as referenced by the error. Compare the failing release with a version below 4.95.1 and determine whether installation completes without the reported EBUSY rename failure.
Written by the indexing model from the issue text.
Description
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 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 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
- Dominant language
- TypeScript
- Stars
- 79.4k
- Forks
- 6.9k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 39
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coder/code-server
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
coder/code-server#8017 · 2 comments ·
-
security
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
coder/code-server#8013 · 4 comments ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
coder/code-server#7976 · 2 comments ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
coder/code-server#7962 · 3 comments ·
-
bug needs-investigation
Difficulty 4/5 3-5 days Newbie friendliness 55/100
coder/code-server#7955 · 1 comment ·
All issues in coder/code-server
Similar issues
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 70/100