Questions tagged [concurrently]

53 questions
1
vote
1 answer

"concurrently" not working for parent directory client reactjs server

"concurrently" not working for parent directory client reactjs server. concurrently commands are: "scripts": { "client": "cd ../ --prefix client && npm run start", "server": "nodemon index.js", "dev" : "concurrently \"npm run client\"…
Pradeep
  • 159
  • 2
  • 2
  • 7
1
vote
1 answer

How to run Nextjs app and Express server concurrently using npm concurrently package?

How to run Nextjs app and Express server concurrently using npm concurrently package? I have a project which is created using Node Express as the backend and NextJs as the frontend. I want to use concurrently npm package to start both Express…
JustAG33K
  • 1,403
  • 3
  • 13
  • 28
1
vote
1 answer

Run two scripts from package.json in Netifly

I have deployed my React app successfully in Netifly. My app live URL Here is my package.json file's scripts: "scripts": { "start": "react-scripts start", "json-server": "json-server --watch db.json --port 3003", "start:dev":…
Rashed Rahat
  • 2,357
  • 2
  • 18
  • 38
1
vote
0 answers

concurrently' is not working in npm start

I am getting this error while running npm start to run react scripts and electron parallelly. PS C:\NotMyuserName\user\Desktop\PSlab\pslab-desktop> npm start > pslab@2.4.0 start C:\Users\user\Desktop\PSlab\pslab-desktop > concurrently 'npm run…
Abhijay007j
  • 888
  • 6
  • 13
1
vote
1 answer

How can i run php script concurrently?

I want to run this piece of code concurrently. There is a txt file in the directory named as id.txt where all parameters are replace in the Cookie in headers below. If I'm running this by opening 10 cmd tabs then the process gets slow. So please…
1
vote
1 answer

Can't run strapi and react concurrently

I was truing to run strapi and react in strapi's public directory concurrently but having problems. [1] npm ERR! code ELIFECYCLE [1] npm ERR! errno 1 [1] npm ERR! public@0.1.0 start: `react-scripts start` [1] npm ERR! Exit status 1 [1] npm ERR! [1]…
Robbi
  • 151
  • 2
  • 6
  • 14
1
vote
2 answers

Errors on 'concurrently "npm run server" "npm run client" with MERN

First of all, I would like to apologize for the spelling mistakes, I'm not very good. I have a problem whilethe starting my mern server... I want to run it with with "npm run dev". This command line execute "npm run server" and "npm run…
Plartusse
  • 11
  • 4
1
vote
1 answer

NPM Script Concurrently, Not Using Working Dir But Defaulting to Home Dir (Windows)

I'm using the concurrently npm package (5.1.0) in my node project to run two npm scripts in parallel. But when I run npm start in cmd prompt to start my scripts, concurrently tries running the commands in, what I believe to be, my home dir which is…
Sal
  • 5,129
  • 5
  • 27
  • 53
1
vote
0 answers

EADDRINUSE: address already in use :::5000, happens every time I run my node/react apps

Pretty much every time I run my node/react apps I get this error on the port where I'm running the node server. I know how to solve it temporarily by finding the PID with lsof -i:5000 and then using the kill command to shut it down. However I'm…
ZeGeR
  • 51
  • 3
  • 10
0
votes
0 answers

console.log causes error when used in Electron main process

I am writing an Electron app and whenever I used console.log() or any of its variants in the main process, the app will crash and it will open a popup with the following message: Error X A JavaScript error occurred in the main process Uncaught…
0
votes
0 answers

Electron app not launching in development

I'm quite confused as why my electron app doesn't launch when I used npm run electron:serve for my project, but when my friend try it in his laptop he can run and the apps launch normally ,so Is there anyone here ever face the same problem with me?…
0
votes
1 answer

npm run dev is only works for backend but frontend is still not startng

"scripts": { "test": "echo \"Error: no test specified\" && exit 1", "backend" : "nodemon backend/server.js", "frontend" : "npm start -p frontend", "dev": "concurrently \"npm run backend \"\"npm run frontend \"" } I want to run frontend and…
Shuvo Roy
  • 11
  • 2
0
votes
1 answer

How to silently kill wiremock after Cypress test are executed?

I have an all-in-one npm script that: Starts a React application Starts Wiremock server in playback mode Executes Cypress tests silently For that I'm using concurrently: "cypress:runner:one-shot": "concurrently npm:wiremock:playback…
Gonzalo Matheu
  • 8,984
  • 5
  • 35
  • 58
0
votes
1 answer

when i run npm dev which is concurrently opens localhost 3000 which does not contain my project

"scripts": { "start": "react-scripts start", "server": "nodemon server ", "client": "npm start --prefix client ", "dev": "npx concurrently "npm run server" "npm run client"" This is the code on my server package json when I npm run dev it opens…
0
votes
1 answer

Gracefully shutdown when using npm-run-all

In my development environment, I am using npm-run-all (run-p) to run two npm scripts in parallel: the typescript compiler in wach mode; and my server with nodemon. I am trying to gracefully shutdown my server when I hit CTRL+C, but it seems that the…