Prlimit: failed to execute null: No such file or directory


I just created a new base node.js and removed all the files it contained except package.json. From package.json I removed the start and the original packages like Express.

"main": "server.js",
"scripts": {
   "start": "node server.js"

Now I’m getting this error

prlimit: failed to execute null: No such file or directory

Anyone know what might have caused it? Does it need a start?


You have already told why you have got the error actually.
You created node.js
and then did

“main”: “server.js”,
“scripts”: {
“start”: “node server.js”

What you should have done instead is

“main”: “node.js”,
“scripts”: {
“start”: “node node.js”

or simply nameyour file as server.js and use the old block of server.js in package.json.


Unless you’re only using static files, you need at least a package.json file with a start command.


Thanks! Yeah that was the default code, I removed main and start entirely. And that’s when it happened. Guess it is just expecting there to be a server aspect to the app? I also tried removing the code from the start file entirely and still got the error.

The app is just meant to be used in the console, was just playing around with the idea and seeing if it could work on Glitch.


Yeah, there is a project console available under advanced options from the top-left project info menu if you just want to run commands. But depending on your use-case, you might find this project useful for running console apps in the browser: