Error npm run dev

Just like your config, you only can run npm run test, cause npm run XXX It executes scripts configured in package. json, such as:

"scripts": {
    "dev": "node build/dev-server.js",
    "build": "node build/build.js",
  },

Only with this configuration can you run, so not all projects can run dev. so if you want to run npm run dev, you need to set config for this command.