Error sh: 1: concurrently: Permission denied

This is the log i keep getting. everybody says to uninstall node module files and rerun npm install but this is not solving the issue im having.

==> Using Node version 20.12.1 (default)

Apr 11 06:21:26 PM==> Docs on specifying a Node version: Setting Your Node.js Version | Render Docs

Apr 11 06:21:26 PM==> Using Bun version 1.1.0 (default)

Apr 11 06:21:26 PM==> Docs on specifying a bun version: Setting your Bun Version | Render Docs

Apr 11 06:21:31 PM==> Running ‘npm run develop’

Apr 11 06:21:33 PM

Apr 11 06:21:33 PM> book-search-engine@1.0.0 develop

Apr 11 06:21:33 PM> concurrently “cd server && npm run watch” “cd client && npm start”

Apr 11 06:21:33 PM

Apr 11 06:21:33 PMsh: 1: concurrently: Permission denied

Hi there,

It looks like you’re trying to run your front and backends on the same service. How you do this will likely not work on Render as we only expose a single port through our proxy to the public internet. The way your are starting your services I believe it will listen on 2 ports.

You have two options from here:

  1. Run your front and backend as separate services. You can deploy your frontend as a static site, and your backend as a web service. Your frontend will call your backend by its onrender.com domain.
  2. Use a single service but configure your backend service to serve your frontends static assets.

Regards,

Keith
Render Support, UTC+10 :australia: