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

code-server 4.91.1 can't install at alpine #6905

Closed
1 task done
502647092 opened this issue Jul 18, 2024 · 2 comments
Closed
1 task done

code-server 4.91.1 can't install at alpine #6905

502647092 opened this issue Jul 18, 2024 · 2 comments
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@502647092
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: Linux
  • Remote Architecture: x86
  • code-server --version: 4.91.1

Steps to Reproduce

  1. pull node:20.11.1-alpine docker image
  2. run npm install --global code-server --unsafe-perm

Expected

install success

Actual

node-gyp rebuild error

Logs

52.65 npm notice                                                                                                                                                                               
52.65 npm notice New minor version of npm available! 10.2.4 -> 10.8.2    
52.65 npm notice Changelog: <https://github.com/npm/cli/releases/tag/v10.8.2>                  
52.65 npm notice Run `npm install -g npm@10.8.2` to update!                                    
52.65 npm notice                               
52.65 npm ERR! code 1                          
52.65 npm ERR! path /usr/local/lib/node_modules/code-server
52.65 npm ERR! command failed
52.65 npm ERR! command sh -c sh ./postinstall.sh
52.66 npm ERR! Installing Code dependencies...
52.66 npm ERR! User agent: npm/10.2.4 node/v20.11.1 linux x64 workspaces/false
52.66 npm ERR! You may not have the required dependencies to build the native modules.
52.66 npm ERR! Please see https://github.com/coder/code-server/blob/main/docs/npm.md
52.66 npm ERR! npm ERR! code 1
52.66 npm ERR! npm ERR! path /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/@vscode/windows-registry
52.66 npm ERR! npm ERR! command failed
52.66 npm ERR! npm ERR! command sh -c node-gyp rebuild
52.66 npm ERR! npm ERR! gyp info it worked if it ends with ok
52.66 npm ERR! npm ERR! gyp info using node-gyp@10.0.1
52.66 npm ERR! npm ERR! gyp info using node@20.11.1 | linux | x64
52.66 npm ERR! npm ERR! gyp info find Python using Python version 3.11.9 found at "/usr/bin/python3"
52.66 npm ERR! npm ERR! gyp http GET https://unofficial-builds.nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz
52.66 npm ERR! npm ERR! gyp http 200 https://unofficial-builds.nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz
52.66 npm ERR! npm ERR! gyp WARN install got an error, rolling back install
52.66 npm ERR! npm ERR! gyp ERR! configure error 
52.66 npm ERR! npm ERR! gyp ERR! stack Error: aborted
52.66 npm ERR! npm ERR! gyp ERR! stack at connResetException (node:internal/errors:787:14)
52.66 npm ERR! npm ERR! gyp ERR! stack at TLSSocket.socketCloseListener (node:_http_client:455:19)
52.66 npm ERR! npm ERR! gyp ERR! stack at TLSSocket.emit (node:events:530:35)
52.66 npm ERR! npm ERR! gyp ERR! stack at node:net:337:12
52.66 npm ERR! npm ERR! gyp ERR! stack at TCP.done (node:_tls_wrap:657:7)
52.66 npm ERR! npm ERR! gyp ERR! System Linux 5.10.0-23-amd64
52.66 npm ERR! npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
52.66 npm ERR! npm ERR! gyp ERR! cwd /usr/local/lib/node_modules/code-server/lib/vscode/node_modules/@vscode/windows-registry
52.66 npm ERR! npm ERR! gyp ERR! node -v v20.11.1
52.66 npm ERR! npm ERR! gyp ERR! node-gyp -v v10.0.1
52.66 npm ERR! npm ERR! gyp ERR! not ok
52.66 npm ERR!                                 
52.66 npm ERR! npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-07-18T01_34_08_502Z-debug-0.log
52.66                                          
52.66 npm ERR! A complete log of this run can be found in: /root/.npm/_logs/2024-07-18T01_33_53_084Z-debug-0.log
------


### Screenshot/Video

_No response_

### Does this bug reproduce in native VS Code?

I did not test native VS Code

### Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

### Are you accessing code-server over a secure context?

- [X] I am using a secure context.

### Notes

_No response_
@502647092 502647092 added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Jul 18, 2024
@code-asher
Copy link
Member

Thank you for the report. It looks like you may be missing the dependencies required to build code-server? You can check out the docs linked in the output.

Closing for now since this is probably not a code-server bug.

@code-asher code-asher closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2024
@code-asher
Copy link
Member

It could also be that @vscode/windows-registry has an issue on Alpine. If so it should be looked at as part of #3431 since currently Alpine is not officially supported.

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

2 participants