You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I compiled npm to a standalone executable with bun.
I deleted the source npm package files after the compilation, then copied the executable to a different disk, then copied the executable back to the original directory.
I ran the executable again, and it threw, citing the standalone executable can't find a module in the deleted folder
bun-npm --help
error: Cannot find module "/home/user/bin/node-v23/lib/node_modules/npm/lib/cli/entry.js" from "/$bunfs/root/bun-npm"
at syntaxErrorHandler (/$bunfs/root/bun-npm:286:16)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I compiled
npm
to a standalone executable withbun
.I deleted the source
npm
package files after the compilation, then copied the executable to a different disk, then copied the executable back to the original directory.I ran the executable again, and it threw, citing the standalone executable can't find a module in the deleted folder
Beta Was this translation helpful? Give feedback.
All reactions