Laravel:包laravel-elixir不满足其兄弟姐妹'

时间:2015-12-26 08:40:12

标签: php node.js laravel laravel-5.1 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/"
  }
}

1 个答案:

答案 0 :(得分:1)

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

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