错误缺少脚本:nodemon

时间:2017-02-02 21:01:25

标签: node.js npm nodemon

我正在按照我发现here的教程。以前命令运行正常,但在运行npm run nodemon后进行一些更改后,它会给我错误 enter image description here

这是我的package.json

{
  "name": "smashing-react-i18n",
  "version": "1.0.0",
  "description": "",
  "main": "dist/bundle.js",
  "betterScripts": {
    "build": {
      "command": "webpack -p",
      "env": {
        "NODE_ENV": "production"
      }
    },
    "nodemon": {
      "command": "nodemon server.js",
      "env": {
        "NODE_PATH": "src"
      }
    }
  },

0 个答案:

没有答案