LoginSignup
7
7

More than 5 years have passed since last update.

package.jsonの' "start": "node server.js"' は省略できる

Last updated at Posted at 2016-10-22

package.json と同じディレクトリに server.js が置いてあれば、

{
  "scripts": {
    "start": "node server.js"
  }
}

なっていなくてもnpm start すれば勝手にnode server.js が実行される

npmのdocumentに書いてあった

If no "start" property is specified on the "scripts" object, it will run node server.js.

7
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
7