Wait seconds before running next task on scripts package.jscon
问题 What I want to do is when I run npm run dev to execute those both tasks I need to wait for 5 seconds until next task runs. Run the npm run server wait for 5 seconds and then npm run client "scripts": { "start": "node ./bin/www", "server": "nodemon start", "client": "gulp", "dev": "concurrently 'npm run server' 'npm run client'", } 回答1: Assuming you're on Linux, you can use sleep command: "dev": "concurrently 'npm run server' 'sleep 5 && npm run client'" 回答2: Adding to @TGrif answer, chain