kentcdodds / es6-todomvc

The vanillajs example converted to es6
https://kcd.im/webpack-workshop-repo
MIT License
351 stars 358 forks source link

Webpack 2 doesn't satisfy siblings peer dependencies #4

Closed matt-mcdaniel closed 8 years ago

matt-mcdaniel commented 8 years ago

I did a fresh clone of the repo and ran npm install and and getting peer dependency errors with regard to babel-loader, karma-webpack, and webpack-dev-server.

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.4.0
npm ERR! npm  v2.14.20
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package webpack@2.1.0-beta.12 does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer babel-loader@6.2.4 wants webpack@1 || ^2.1.0-beta
npm ERR! peerinvalid Peer karma-webpack@1.7.0 wants webpack@^1.4.0
npm ERR! peerinvalid Peer webpack-dev-server@2.0.0-beta wants webpack@>=2.0.3-beta <3

Running npm 2.14.20 and node 4.4.0.

kentcdodds commented 8 years ago

Yeah, Webpack 2 is still beta. Your going to need to use npm version 3 to get around these warnings for now. Good luck!

matt-mcdaniel commented 8 years ago

Cool, good to know npm 3+ will fix the problem. Thanks for the insight!

zuzust commented 8 years ago

@kentcdodds Well, I'm running node 4.4.0 and npm 3.8.1 and still there are install errors:

carles:code [git|master:7ebe1bd]
% → npm list --depth=0               
/home/carles/Learning/Webpack/Courses/2016-egghead/webpack-production-js-apps/code
├── babel@6.5.2
├── babel-core@6.8.0
├── babel-eslint@6.0.4
├── babel-loader@6.2.4
├── babel-plugin-__coverage__@1.11.111
├── babel-preset-es2015-webpack@6.4.1
├── babel-preset-stage-2@6.5.0
├── chai@3.5.0
├── cpy-cli@1.0.0
├── css-loader@0.23.1
├── eslint@2.9.0
├── eslint-config-kentcdodds@6.2.1
├── eslint-loader@1.3.0
├── ghooks@1.2.1
├── istanbul@0.4.3
├── karma@0.13.22
├── karma-chai@0.1.0
├── karma-chrome-launcher@1.0.1
├── karma-coverage@1.0.0
├── karma-mocha@1.0.1
├── karma-webpack@1.7.0
├── mocha@2.5.3
├── npm-run-all@1.8.0
├── opt-cli@1.4.2
├── rimraf@2.5.2
├── style-loader@0.13.1
├── todomvc-app-css@2.0.4
├── todomvc-common@1.0.2
├── UNMET PEER DEPENDENCY webpack@2.1.0-beta.12
├── webpack-dev-server@2.0.0-beta
└── webpack-validator@2.1.2

npm ERR! peer dep missing: webpack@^1.4.0, required by karma-webpack@1.7.0
npm ERR! peer dep missing: webpack@>=2.0.3-beta <3, required by webpack-dev-server@2.0.0-beta

Any ideas?

kentcdodds commented 8 years ago

You'll see warnings on install, but there should not be errors to prevent you from running the scripts... are you unable to build/test

zuzust commented 8 years ago

@kentcdodds Yes, I am. No webpack module installed. Is it a dependency version conflict?

kentcdodds commented 8 years ago

Could you try explicitly installing it: npm install webpack@2.1.0-beta.12?