help
help copied to clipboard
Could not find the sentinel NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 in the binary
Details
I followed these steps https://nodejs.org/api/single-executable-applications.html When I run
npx postject hello NODE_SEA_BLOB sea-prep.blob \
--sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 \
--macho-segment-name NODE_SEA
I get:
Error: Could not find the sentinel NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 in the binary
Node.js version
21.3.0
Example code
No response
Operating system
macOS
Scope
Compile time
Module and version
Not applicable.
cc @RaisinTen can you advise
why nobody doesn't care about the issue ?
@preveen-stack @YunusCorum I used this archived https://github.com/vercel/pkg project and it worked.
My issue is "Error: Multiple occurences of sentinel "NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2" found in the binary"
for macos and node v20.10.0 (and v20.11.0 LTS too)
node v21 still keep this error
still get this too v20.11.0
stuck with this running v20.11.0 on darwin, eventually switched to v20.0.0 (https://nodejs.org/dist/v20.0.0/node-v20.0.0-darwin-x64.tar.gz and https://nodejs.org/dist/v20.0.0/node-v20.0.0-darwin-arm64.tar.gz) and it seems to be working.
probably it wasn't quite right because I obtained that node's binary from a ".pkg"-distributed version
UPD: sure, you still have to use most modern node version (since postject won't work otherwise), but fetch it as tar.gz
archive
when I use moonrepo/proto to install node, I needed to run
cp $(proto bin node) hello
instead of
cp $(command -v node) hello
to copy a plain Node.js binary not a shim in step 4 of the guide.
Related: https://github.com/volta-cli/volta/issues/1594