2

我安装eslint并在运行命令时,npm run lint然后每次它要求一一安装所有依赖项。是否有任何命令选项可以安装一次而不是一直运行npm run lint

package.json

{
  "private": true,
  "devDependencies": {
    "gulp": "3.9.0",
    "laravel-elixir-livereload": "1.1.2",
    "babel-eslint": "4.1.1",
    "eslint": "1.3.1",
    "eslint-config-airbnb": "0.0.8",
    "eslint-plugin-react": "3.3.1",
    "laravel-elixir-eslint": "1.0.0"
  },
  "dependencies": {
    "laravel-elixir": "3.2.6",
    "bootstrap-sass": "3.3.5",
    "jquery": "2.1.4"
  },
  "scripts": {
    "lint": "./node_modules/.bin/eslint resources/assets/js/"
  }
}
4

1 回答 1

-2

使用 npm install ,它将读取 gulpfile 的顶部并安装列出的所有依赖项

于 2017-06-07T14:12:58.773 回答