Skip to content
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

You may not have the required dependencies to build the native modules. #7209

Closed
1 of 2 tasks
Satyam1Vishwakarma opened this issue Feb 18, 2025 · 1 comment
Closed
1 of 2 tasks
Labels
bug Something isn't working os-windows Windows related triage This issue needs to be triaged by a maintainer

Comments

@Satyam1Vishwakarma
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Edge
  • Local OS: Windows
  • Remote OS: Windows
  • Remote Architecture: amd64
  • code-server --version: 4.xx

Steps to Reproduce

npm install -g code-server

Expected

install successfull

Actual

➜ ~ npm install -g code-server
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 F:\node-v20.18.3-win-x64\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.3 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 F:\node-v20.18.3-win-x64\node_modules\code-server
npm error npm error dest F:\node-v20.18.3-win-x64\node_modules.code-server-sBVAwspn
npm error npm error errno -4082
npm error npm error EBUSY: resource busy or locked, rename 'F:\node-v20.18.3-win-x64\node_modules\code-server' -> 'F:\node-v20.18.3-win-x64\node_modules.code-server-sBVAwspn'
npm error npm error A complete log of this run can be found in: F:\packages\npm_logs\2025-02-18T10_05_22_242Z-debug-0.log
npm error A complete log of this run can be found in: F:\packages\npm_logs\2025-02-18T10_05_09_079Z-debug-0.log

Logs

Screenshot/Video

Image

Does this bug reproduce in native VS Code?

I did not test 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

@Satyam1Vishwakarma Satyam1Vishwakarma added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Feb 18, 2025
@coder-labeler coder-labeler bot added the os-windows Windows related label Feb 18, 2025
@code-asher
Copy link
Member

code-asher commented Feb 18, 2025

We do not support building on Windows yet. I am not sure what could be causing the rename failure though, looks like it fails when we run npm install inside lib/vscode... 🤔

@Satyam1Vishwakarma Satyam1Vishwakarma closed this as not planned Won't fix, can't repro, duplicate, stale Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working os-windows Windows related triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants