[Bug]: Missing dependencies (minimist, yauzl, yazl)
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
OS/Web Information
- Web Browser: Chrome
- Local OS: Windows 10
- Remote OS: Raspberry Pi 4
- Remote Architecture: armhf
code-server --version
:
Steps to Reproduce
- Install code-server by doing
npm --global i code-server --unsafe-perm
- Startup code-server with no errors
- Send request to server, server gives error
Expected
No errors: webpage should display
Actual
Errors appear
Logs
Loading "minimist" failed
Error: Cannot find module 'minimist'
Require stack:
- /usr/local/lib/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
- /usr/local/lib/node_modules/code-server/out/node/util.js
- /usr/local/lib/node_modules/code-server/out/node/cli.js
- /usr/local/lib/node_modules/code-server/out/node/entry.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
at Function.Module._load (node:internal/modules/cjs/loader:804:27)
at Function.require._load (/usr/local/lib/node_modules/code-server/out/node/plugin.js:54:74)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at r (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:101)
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:1720)
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11005)
at a (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10302)
at Object.errorback (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10423)
at e.triggerErrorback (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11369)
at /usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11075
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:1737)
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11005)
at a (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10302)
at o._loadModule (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10432)
at o._resolve (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:452)
at o.defineModule (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:6144)
at y (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:1825)
at h (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:2554)
at Object.<anonymous> (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/server/node/server.main.js:75:26132)
at Object.<anonymous> (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/server/node/server.main.js:176:2108)
at e._createAndEvalScript (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:2598)
at /usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:2237
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/local/lib/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
'/usr/local/lib/node_modules/code-server/out/node/util.js',
'/usr/local/lib/node_modules/code-server/out/node/cli.js',
'/usr/local/lib/node_modules/code-server/out/node/entry.js'
],
phase: 'loading',
moduleId: 'minimist',
neededBy: [ 'vs/platform/environment/node/argv' ]
}
Here are the modules that depend on it:
[ 'vs/platform/environment/node/argv' ]
Loading "@microsoft/1ds-core-js" failed
Error: Cannot find module '@microsoft/1ds-core-js'
Require stack:
- /usr/local/lib/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
- /usr/local/lib/node_modules/code-server/out/node/util.js
- /usr/local/lib/node_modules/code-server/out/node/cli.js
- /usr/local/lib/node_modules/code-server/out/node/entry.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
at Function.Module._load (node:internal/modules/cjs/loader:804:27)
at Function.require._load (/usr/local/lib/node_modules/code-server/out/node/plugin.js:54:74)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at r (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:101)
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:1720)
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11005)
at a (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10302)
at Object.errorback (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10423)
at e.triggerErrorback (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11369)
at /usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11075
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:1737)
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11005)
at a (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10302)
at o._loadModule (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10432)
at o._resolve (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:452)
at o.defineModule (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:6144)
at y (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:1825)
at h (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:2554)
at Object.<anonymous> (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/server/node/server.main.js:135:9424)
at Object.<anonymous> (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/server/node/server.main.js:176:2108)
at e._createAndEvalScript (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:2598)
at /usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:2237
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/local/lib/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
'/usr/local/lib/node_modules/code-server/out/node/util.js',
'/usr/local/lib/node_modules/code-server/out/node/cli.js',
'/usr/local/lib/node_modules/code-server/out/node/entry.js'
],
phase: 'loading',
moduleId: '@microsoft/1ds-core-js',
neededBy: [ 'vs/server/node/telemetryClient' ]
}
Here are the modules that depend on it:
[ 'vs/server/node/telemetryClient' ]
Loading "yauzl" failed
Error: Cannot find module 'yauzl'
Require stack:
- /usr/local/lib/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
- /usr/local/lib/node_modules/code-server/out/node/util.js
- /usr/local/lib/node_modules/code-server/out/node/cli.js
- /usr/local/lib/node_modules/code-server/out/node/entry.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
at Function.Module._load (node:internal/modules/cjs/loader:804:27)
at Function.require._load (/usr/local/lib/node_modules/code-server/out/node/plugin.js:54:74)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at r (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:101)
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:1720)
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11005)
at a (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10302)
at Object.errorback (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10423)
at e.triggerErrorback (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11369)
at /usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11075
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:1737)
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11005)
at a (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10302)
at o._loadModule (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10432)
at o._resolve (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:452)
at o.defineModule (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:6144)
at y (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:1825)
at h (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:2554)
at Object.<anonymous> (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/server/node/server.main.js:140:86230)
at Object.<anonymous> (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/server/node/server.main.js:176:2108)
at e._createAndEvalScript (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:2598)
at /usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:2237
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/local/lib/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
'/usr/local/lib/node_modules/code-server/out/node/util.js',
'/usr/local/lib/node_modules/code-server/out/node/cli.js',
'/usr/local/lib/node_modules/code-server/out/node/entry.js'
],
phase: 'loading',
moduleId: 'yauzl',
neededBy: [ 'vs/base/node/zip' ]
}
Here are the modules that depend on it:
[ 'vs/base/node/zip' ]
Loading "yazl" failed
Error: Cannot find module 'yazl'
Require stack:
- /usr/local/lib/node_modules/code-server/lib/vscode/out/bootstrap-amd.js
- /usr/local/lib/node_modules/code-server/out/node/util.js
- /usr/local/lib/node_modules/code-server/out/node/cli.js
- /usr/local/lib/node_modules/code-server/out/node/entry.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
at Function.Module._load (node:internal/modules/cjs/loader:804:27)
at Function.require._load (/usr/local/lib/node_modules/code-server/out/node/plugin.js:54:74)
at Module.require (node:internal/modules/cjs/loader:1028:19)
at require (node:internal/modules/cjs/helpers:102:18)
at r (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:101)
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:1720)
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11005)
at a (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10302)
at Object.errorback (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10423)
at e.triggerErrorback (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11369)
at /usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11075
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:1737)
at e.load (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:3:11005)
at a (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10302)
at o._loadModule (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:10432)
at o._resolve (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:452)
at o.defineModule (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:5:6144)
at y (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:6:1825)
at h (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:2554)
at Object.<anonymous> (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/server/node/server.main.js:140:86230)
at Object.<anonymous> (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/server/node/server.main.js:176:2108)
at e._createAndEvalScript (/usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:2598)
at /usr/local/lib/node_modules/code-server/lib/vscode/out/vs/loader.js:4:2237
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/local/lib/node_modules/code-server/lib/vscode/out/bootstrap-amd.js',
'/usr/local/lib/node_modules/code-server/out/node/util.js',
'/usr/local/lib/node_modules/code-server/out/node/cli.js',
'/usr/local/lib/node_modules/code-server/out/node/entry.js'
],
phase: 'loading',
moduleId: 'yazl',
neededBy: [ 'vs/base/node/zip' ]
}
Screenshot/Video
No response
Does this issue happen in VS Code or GitHub Codespaces?
- I cannot reproduce this in VS Code.
- I cannot reproduce this in GitHub Codespaces.
Are you accessing code-server over HTTPS?
- I am using HTTPS.
Notes
There are other errors when not installing globally (such as a 404 error).
Issue Analytics
- State:
- Created a year ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
yauzl - npm
Start using yauzl in your project by running `npm i yauzl`. There are 710 other projects in the npm registry using yauzl.
Read more >Can't run Cesium Locally - Google Groups
to cesium-dev. Thanks for the logs. It looks like your missing a file: [09:15:11] Error: ENOENT: no such file or directory, open 'Apps/.jshintrc'....
Read more >AllMirror/VSCode: VSCode/Code - OSS Mirror - NotABug.org
... dependencies: tslib "^2.0.0"; "@azure/core-asynciterator-polyfill@^1.0.0": ... error/-/request-error-2.1.0.tgz#9e150357831bfc788d13a4fd4b1913d60c74d677" ...
Read more >react-native-archives - npm Package Health Analysis | Snyk
All security vulnerabilities belong to production dependencies of direct and indirect ... Looks like react-native-archives is missing a security policy.
Read more >https://packages.debian.org/source/buster/allpacka...
... (0.13~20190125-3) elisp-bug-hunter (1.3.1+repack-2) elisp-refs (1.3-1) ... node-yarnpkg (1.13.0-1+deb10u1) node-yauzl (2.10.0-1) node-yazl (2.0.2-1) ...
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
A short term hack/workaround: after the global install, go to the
node_modules/code-server/lib/vscode
directory directly and issue annpm install --legacy-peer-deps
.I tried installing this three packages with npm globally and it seems the problem is solved sudo npm install -g @microsoft/1ds-core-js minimist yauzl i hope this will solve the problem