Comments (6)
Won't be nice to make that as default?
I don't see any disadvantage of not using bun
from pm2.
It won't be as easy as just stating "let's make a different interpreter the default".
Here's some cons just for sake of argument:
- Bun is still under development.
- Bun is not as widely used as Node.js.
- Bun does not support all Node.js APIs.
- Bun is not as well-documented as Node.js.
So, while Node.js is still the most popular, complete and stable production-ready interpreter, in my opinion PM2 should stick with it and only start discussing about it when Node.js is surpassed in those areas.
Nothing against Bun, but you have to be realistic.
from pm2.
You want to use bun as interpreter?
pm2 start --interpreter ~/.bun/bin/bun
from pm2.
You want to use bun as interpreter?
pm2 start --interpreter ~/.bun/bin/bun
how i can make it permament and then how i can leave it as default?
from pm2.
Actually coming back to this, it seems that bun is the default already for typescript (bad decision if you ask me) since oct 6 2023:
135c123
That would mean that if you really want to use bun by default, either modify that file manually or use typescript extension.
from pm2.
I can't get pm2 to work with bun at all. Whatever I do pm2 always gives this error:
/usr/bin/env: 'node': No such file or directory
I have tried with command line arguments and with a configuration file. Still it seems to ignore the interpreter argument completely.
.bun/bin/pm2 start ecosystem.json
.bun/bin/pm2 start --interpreter bun index.js
.bun/bin/pm2 start --interpreter /usr/local/bin/bun index.js
ecosystem.json:
{
"apps": [
{
"name": "myapp",
"script": "index.js",
"interpreter": "/usr/local/bin/bun",
"instances": 1,
"exec_mode": "fork",
"autorestart": true,
"watch": false,
"error_file": "./errors.log",
"out_file": "./myapp.log"
}
]
}
from pm2.
Related Issues (20)
- PM2 loses connection with Keymetrics on system reboot HOT 1
- set 'content-length' and 'transfer-encoding:gzip' for 'pm2 serve'
- Try catch blocks cause the pm2 app to crash when an exception is caught. HOT 2
- pm2 logs do not print realtime on M2 Pro HOT 1
- use pm2 start index.ts occur Error HOT 1
- Question regarding logging :question: HOT 1
- Critical error on compatibility with pm2 on automatically start service on system startup cases HOT 1
- Sudden PM2 core dump. Asking for assistance in finding the root cause, if possible. HOT 2
- `pm2 logs` with a namespace doesn't work if run before relevant `pm2 start`
- PM2 and cluster mode in Node.js/TypeScript HOT 5
- ***Urgent***: GNU-AGPL License Concerns HOT 1
- https://id.keymetrics.io/api/oauth/register not loading HOT 1
- Slow and crush HOT 2
- Suddenly crased HOT 2
- Pm2 start a new daemon and delete all my apps HOT 2
- Load balancing is not distribute the load evenly
- Graviton3 support – intermittent crash/coredump HOT 1
- Configuration file management app log confusion issues.
- PM2 start with next.js is too slow
- Replace/remove/fix vizion dependency causing annoying popups flashing in Windows
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pm2.