ITNEXT

ITNEXT is a platform for IT developers & software engineers to share knowledge, connect…

Follow publication

Member-only story

4 Solutions To Run Multiple Node.js or NPM Commands Simultaneously

At Some Point, Everyone Has this Problem…

Node and NPM: they just go together like peanut butter and jelly.

Funny Story, NPM Doesn’t Provide an Immediately Obvious Way to Run Multiple Scripts at Once

We’ve all been there — you open up an app for local development and you need to run your Express/Node.js backend server and your React UI server simultaneously, but in order to do so you have to open up two terminal (or more) windows, cd into two different package.json files via the command line and run two different start commands.

Sound familiar? If only there were a better way…

The Solution(s)

Quite simply, is a better way. And like all good things in web development today, there’s a thousand different ways to achieve the same end.

Today, I will share four ways to run multiple Node.js commands or NPM scripts at once.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Published in ITNEXT

ITNEXT is a platform for IT developers & software engineers to share knowledge, connect, collaborate, learn and experience next-gen technologies.

Written by Paige Niedringhaus

Staff Software Engineer at Blues, previously a digital marketer. Technical writer & speaker. Co-host of Front-end Fire & LogRocket podcasts

Responses (12)

Write a response

&& doesn't work in Windows.

what about good old Makefile ? also gives you free command line completion on *nix

"dev": ""concurrently \"cd server && npm run start\" \"npm run start\""

This should be
"dev": "concurrently \"cd server && npm run start\" \"npm run start\""
There is an additional `"`