Closed
Description
Is there an existing issue for this?
- I have searched the existing issues
OS/Web Information
- Web Browser: Brave
- Local OS: Android
- Remote OS: Android (Termux, using proot-distro with the archlinux distro)
- Remote Architecture: ARM64
code-server --version
: 4.7.0 (can't use command since it can't run, but this is the version I downloaded)
Steps to Reproduce
- Use the install script to install code-server in the standalone method
- Try running code-server (like
code-server --version
) - It fails.
Expected
code-server to run fine without any errors.
Actual
code-server crashes with the following error:
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module './lib/binding/napi-v3/argon2.node'
Require stack:
- /home/radiatedexodus/.local/lib/code-server-4.7.0/node_modules/argon2/argon2.js
- /home/radiatedexodus/.local/lib/code-server-4.7.0/out/node/util.js
- /home/radiatedexodus/.local/lib/code-server-4.7.0/out/node/cli.js
- /home/radiatedexodus/.local/lib/code-server-4.7.0/out/node/entry.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/radiatedexodus/.local/lib/code-server-4.7.0/node_modules/argon2/argon2.js:6:25)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/radiatedexodus/.local/lib/code-server-4.7.0/node_modules/argon2/argon2.js',
'/home/radiatedexodus/.local/lib/code-server-4.7.0/out/node/util.js',
'/home/radiatedexodus/.local/lib/code-server-4.7.0/out/node/cli.js',
'/home/radiatedexodus/.local/lib/code-server-4.7.0/out/node/entry.js'
]
}
Logs
Can't run code-server at all, following error thrown:
node:internal/modules/cjs/loader:936
throw err;
^
Error: Cannot find module './lib/binding/napi-v3/argon2.node'
Require stack:
- /home/radiatedexodus/.local/lib/code-server-4.7.0/node_modules/argon2/argon2.js
- /home/radiatedexodus/.local/lib/code-server-4.7.0/out/node/util.js
- /home/radiatedexodus/.local/lib/code-server-4.7.0/out/node/cli.js
- /home/radiatedexodus/.local/lib/code-server-4.7.0/out/node/entry.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/radiatedexodus/.local/lib/code-server-4.7.0/node_modules/argon2/argon2.js:6:25)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/radiatedexodus/.local/lib/code-server-4.7.0/node_modules/argon2/argon2.js',
'/home/radiatedexodus/.local/lib/code-server-4.7.0/out/node/util.js',
'/home/radiatedexodus/.local/lib/code-server-4.7.0/out/node/cli.js',
'/home/radiatedexodus/.local/lib/code-server-4.7.0/out/node/entry.js'
]
}
Screenshot/Video
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
- Albeit i'm using Termux, I run code-server in a proot-distro environment using the archlinux distro!
- Installed
nodejs-lts-gallium package
andnpm
with pacman - Using
npm
directly doesn't really work for me, the last time I've used it, no matter what I do I couldn't upgrade code-server when a new release was released. (either saying it can't find some cached files, or it doesn't do anything and make me waste time)