php – Laravel:包laravel-elixir不满足其兄弟姐妹’

我想使用更新的包并得到错误:

npm ERR! peerinvalid The package laravel-elixir does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer laravel-elixir-livereload@1.1.3 wants laravel-elixir@^3.0

package.json包含:

{
  "private": true,
  "devDependencies": {
    "gulp": "3.9.0",
    "laravel-elixir-livereload": "1.1.3",
    "babel-eslint": "5.0.0-beta6",
    "eslint": "1.10.3",
    "eslint-config-airbnb": "2.1.1",
    "eslint-plugin-react": "3.13.1",
    "laravel-elixir-eslint": "1.3.0"
  },
  "dependencies": {
    "laravel-elixir": "^4.0.0",
    "bootstrap-sass": "^3.0.0",
    "jquery": "2.1.4"
  },
  "scripts": {
    "lint": "./node_modules/.bin/eslint resources/assets/js/"
  }
}

最佳答案 我不相信laravel-elixir 4.0支持laravel-elixir-livereload.我通过使用以前版本的elixir来实现它:

"devDependencies": {
    "gulp": "^3.8.8",
    "laravel-elixir": "^3.4.3",
    "laravel-elixir-livereload": "^1.1.3"
  } 
点赞