v.3.6.3 breaks code-server when using install via yarn global add
See original GitHub issue- Web Browser: Chrome Version 86.0.4240.193 (Official Build) (x86_64)
- Local OS: macOS Big Sur Version 11.0.1
- Remote OS: Red Hat Enterprise Linux 7.5
- Remote Architecture: ppc64le
code-server --version
: v3.7.4 though first introduced in v3.7.3
I am trying to deploy code-server to hundreds of Linux on Power machines. Since there is not a standalone release for ppc (and since the standalone release steps do not seem to work on ppc - yarn vscode
fails to build electron, which why is it even building electron) I am installing code-server via yarn. This has worked fine for v3.7.2.
- Installed
code-server
on ppc machine
$ yarn global add code-server@3.7.4 --exact --force --prefix /usr/local
- Started
code-server
$ code-server --auth none --log debug
[2020-12-02T13:30:03.755Z] info code-server 3.7.4 11f53784c58f68e7f4c5b3b8dae9407caa41725b
[2020-12-02T13:30:03.756Z] info Using user-data-dir ~/.local/share/code-server
[2020-12-02T13:30:03.766Z] info Using config file ~/.config/code-server/config.yaml
[2020-12-02T13:30:03.766Z] info HTTP server listening on http://127.0.0.1:8080
[2020-12-02T13:30:03.766Z] info - Authentication is disabled
[2020-12-02T13:30:03.766Z] info - Not serving HTTPS
[2020-12-02T13:30:14.481Z] debug forking vs code...
- Set up SSH port forwarding on my Mac
$ ssh -N -L 8080:127.0.0.1:8080 <user>@<remote-host>
Connecting through my Mac’s Chrome browser immediatley causes the following crash.
Contents of ~/.local/share/code-server/coder-logs/code-server-stderr.log
Error: Cannot find module 'applicationinsights'
Require stack:
- /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
- /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at t.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:17:960)
at e.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:941)
at o (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:189)
at Object.errorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:313)
at e.triggerErrorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:306)
at /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:10
at ReadFileContext.callback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:18:342)
at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:273:13) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
'/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js'
],
phase: 'loading',
moduleId: 'applicationinsights',
neededBy: [ 'vs/platform/telemetry/node/appInsightsAppender' ]
}
Error: Cannot find module '@coder/node-browser'
Require stack:
- /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
- /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at t.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:17:960)
at e.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:941)
at o (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:189)
at Object.errorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:313)
at e.triggerErrorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:306)
at /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:10
at ReadFileContext.callback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:18:342)
at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:273:13) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
'/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js'
],
phase: 'loading',
moduleId: '@coder/node-browser',
neededBy: [ 'vs/server/node/channel' ]
}
Error: Cannot find module 'yauzl'
Require stack:
- /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
- /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at t.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:17:960)
at e.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:941)
at o (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:189)
at Object.errorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:313)
at e.triggerErrorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:306)
at /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:10
at ReadFileContext.callback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:18:342)
at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:273:13) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
'/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js'
],
phase: 'loading',
moduleId: 'yauzl',
neededBy: [ 'vs/base/node/zip' ]
}
Error: Cannot find module 'yazl'
Require stack:
- /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
- /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at t.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:17:960)
at e.load (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:13:941)
at o (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:189)
at Object.errorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:31:313)
at e.triggerErrorback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:306)
at /usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:14:10
at ReadFileContext.callback (/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/loader.js:18:342)
at FSReqCallback.readFileAfterOpen [as oncomplete] (fs.js:273:13) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
'/usr/local/share/.config/yarn/global/node_modules/code-server/lib/vscode/out/vs/server/fork.js'
],
phase: 'loading',
moduleId: 'yazl',
neededBy: [ 'vs/base/node/zip' ]
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
v.3.6.3 breaks code-server when using install via yarn global ...
I am trying to deploy code-server to hundreds of Linux on Power machines. Since there is not a standalone release for ppc (and...
Read more >Package List — Spack 0.20.0.dev0 documentation
This is a list of things you can install using Spack. ... Description: code-server is VS Code running on a remote server, accessible...
Read more >Bug listing with status UNCONFIRMED as at 2022/12/24 17 ...
Bug:128538 - "sys-apps/coreutils: /bin/hostname should be installed from coreutils not sys-apps/net-tools" status:UNCONFIRMED resolution: severity:enhancement ...
Read more >homebrew-core - Homebrew Formulae
a2ps 4.14 Any‑to‑PostScript filter
aacgain 1.8 AAC‑supporting version of mp3gain
aalib 1.4rc5 Portable ASCII art graphics library
aamath 0.3 Renders mathematical expressions as ASCII art
Read more >What TypeScript version is Visual Studio Code using? How to ...
Install the desired TypeScript version globally, for example npm install -g typescript@2.0.5 · Open VS Code User Settings ( F1 > Open User ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If re-installing doesn’t fix it though and it persists with >= 3.7.3 and not <= 3.7.2 then it could definitely be something else. fwiw I just tried with 3.7.4 and all the dependencies downloaded correctly.
So the solution to this problem is “try again until it works”, did I understand this correctly? I am currently trying to install code-server, and while installation works via both yarn and npm, it fails during runtime because of these missing dependencies, just like in this issue:
Edit: Sorry for the noise, turns out I’ve been missing the build dependencies for Alpine, mentioned here