coder / coder/code-server

Installation error on Windows

未关闭
#7,093 7 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
bug triage
主要语言
TypeScript
星标
79.3k
派生
6.8k
平均合并
2 天 6 小时
30 天内合并 PR
41

描述

### Is there an existing issue for this?

- [x] 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 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 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_

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。