code-server
code-server copied to clipboard
cannot find argon2 module for 4.106.3 release build
Is there an existing issue for this?
- [x] I have searched the existing issues
OS/Web Information
seeing some error below for 4.106.3 release build
/opt/homebrew/Library/Homebrew/vendor/bundle/ruby/3.4.0/bin/bundle
==> Testing code-server
==> /opt/homebrew/Cellar/code-server/4.106.3/bin/code-server --version
node:internal/modules/cjs/loader:1386
throw err;
^
Error: Cannot find module '/opt/homebrew/Cellar/code-server/4.106.3/libexec/node_modules/argon2/lib/binding/napi-v3/argon2.node'
Require stack:
- /opt/homebrew/Cellar/code-server/4.106.3/libexec/node_modules/argon2/argon2.js
- /opt/homebrew/Cellar/code-server/4.106.3/libexec/out/node/util.js
- /opt/homebrew/Cellar/code-server/4.106.3/libexec/out/node/cli.js
- /opt/homebrew/Cellar/code-server/4.106.3/libexec/out/node/entry.js
at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
at defaultResolveImpl (node:internal/modules/cjs/loader:1025:19)
at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1030:22)
at Function._load (node:internal/modules/cjs/loader:1192:37)
at TracingChannel.traceSync (node:diagnostics_channel:328:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:237:24)
at Module.require (node:internal/modules/cjs/loader:1463:12)
at require (node:internal/modules/helpers:147:16)
at Object.<anonymous> (/opt/homebrew/Cellar/code-server/4.106.3/libexec/node_modules/argon2/argon2.js:9:25)
at Module._compile (node:internal/modules/cjs/loader:1706:14) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/opt/homebrew/Cellar/code-server/4.106.3/libexec/node_modules/argon2/argon2.js',
'/opt/homebrew/Cellar/code-server/4.106.3/libexec/out/node/util.js',
'/opt/homebrew/Cellar/code-server/4.106.3/libexec/out/node/cli.js',
'/opt/homebrew/Cellar/code-server/4.106.3/libexec/out/node/entry.js'
]
}
Node.js v22.21.1
- https://github.com/Homebrew/homebrew-core/pull/256643
Steps to Reproduce
- wget https://raw.githubusercontent.com/Homebrew/homebrew-core/4c173aaffcf196c22a5136e63378b3381745d8cd/Formula/c/code-server.rb -O code-server.rb
- brew reinstall -s -f ./code-server.rb
- brew test ./code-server.rb
Expected
should pass the regression check?
Actual
failed
Odd, the .3 patch update did not contain any dependency changes.
I checked our GitHub release for arm64 macOS (https://github.com/coder/code-server/releases/download/v4.106.3/code-server-4.106.3-macos-arm64.tar.gz) and node_modules/argon2/lib/binding/napi-v3/argon2.node does exist.
Is it possible npm failed to download correctly and it just needs to be ran again?
On my build, a fresh build does yield argon2 on my M4 Macbook Air I'll look into this a bit more tomorrow and update if I find anything to recreate your issue