Comment on page
How to use any Nodejs dependened modules (pino-pretty, pm2) with Bunjs
bunjs, pino, pino-pretty, fix, pm2

pino-pretty
requires Node.js to execute- Thus it looks for the
node
executable.
In the example provided, you're using
bun
to execute a TypeScript file and then piping (|
) the output to pino-pretty
which is also being run with bun
. This is assuming that bun
can work as a drop-in replacement for node
in this scenario. However, be cautious with this approach as it might not be applicable for all Nodejs packages or scripts due to compatibility issues.