verekia / js-stack-from-scratch

🛠️⚡ Step-by-step tutorial to build a modern JavaScript stack.
MIT License
20.09k stars 1.99k forks source link

Issue with npm start command instead of yarn dev:start #256

Closed iby-dev closed 6 years ago

iby-dev commented 6 years ago

Hi,

I am new to this so forgive me.

I am using npm as my pm. I tried using yarn and some packages were not downloading successfully so i switched back to npm.

What is the NPM equivalent to the below ... please.

  "scripts": {
    "start": "yarn dev:start",
    "dev:start": "nodemon --ignore lib --exec babel-node src/server",
    "test": "eslint src && flow && jest --coverage"
  },
iby-dev commented 6 years ago

Got it working with:

  "scripts": {
    "start": "npm run-script dev:start",
    "dev:start": "nodemon --ignore lib --exec babel-node src/server",
    "test": "eslint src && flow && jest --coverage"
  },