You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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_
The text was updated successfully, but these errors were encountered:
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.
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.
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.91.1Steps to Reproduce
node:20.11.1-alpine
docker imagenpm install --global code-server --unsafe-perm
Expected
install success
Actual
node-gyp rebuild error
Logs
The text was updated successfully, but these errors were encountered: