Hashnode / mern-cli

⛔️ DEPRECATED - A cli tool for getting started with MERN
http://mern.io/
MIT License
572 stars 149 forks source link

npm install fails with package webpack@2.1.0-beta.13 does not satisfy peerDependencies requirements! #12

Closed fuentesjr closed 8 years ago

fuentesjr commented 8 years ago
sfuentes@sfuentes-desktop:~/Projects/myApp$ uname -a
Linux sfuentes-desktop 3.13.0-85-generic #129-Ubuntu SMP Thu Mar 17 20:50:15 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
sfuentes@sfuentes-desktop:~/Projects$ node --version
v4.4.4
sfuentes@sfuentes-desktop:~/Projects$ npm version
{ npm: '2.15.1',
  ares: '1.10.1-DEV',
  http_parser: '2.5.2',
  modules: '46',
  node: '4.4.4',
  openssl: '1.0.2h',
  uv: '1.8.0',
  v8: '4.5.103.35',
  zlib: '1.2.8' }
sfuentes@sfuentes-desktop:~/Projects$ sudo npm install -g mern-cli
[sudo] password for sfuentes: 
/usr/local/bin/mern -> /usr/local/lib/node_modules/mern-cli/bin/mern.js
/usr/local/bin/merng -> /usr/local/lib/node_modules/mern-cli/bin/merng.js
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/npm-registry-client/node_modules/npm-package-arg requires semver@'4' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/npm/node_modules/semver,
npm WARN unmet dependency which is version 5.1.0
mern-cli@3.0.1 /usr/local/lib/node_modules/mern-cli
├── elegant-spinner@1.0.1
├── commander@2.9.0 (graceful-readlink@1.0.1)
├── chalk@1.1.3 (ansi-styles@2.2.1, supports-color@2.0.0, escape-string-regexp@1.0.5, strip-ansi@3.0.1, has-ansi@2.0.0)
├── log-update@1.0.2 (ansi-escapes@1.4.0, cli-cursor@1.0.2)
├── cli-table@0.3.1 (colors@1.0.3)
├── shelljs@0.6.0
├── ejs@2.4.2
└── writefile@0.2.8 (result-type@1.0.0, mkdirp@0.5.1, lift-result@0.1.5)
sfuentes@sfuentes-desktop:~/Projects$ mern init myApp
Initialized empty Git repository in /home/sfuentes/Projects/myApp/.git/
Fetching the boilerplate...⠋
From https://github.com/Hashnode/mern-starter
Completed.....You are good to go!
sfuentes@sfuentes-desktop:~/Projects$ cd myApp/
sfuentes@sfuentes-desktop:~/Projects/myApp$ npm install
npm WARN peerDependencies The peer dependency webpack@>=1.12.9 <3.0.0 included from babel-plugin-webpack-loaders will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency webpack@^1.4.0-beta6 included from chunk-manifest-webpack-plugin will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency webpack@^1.9.11 included from extract-text-webpack-plugin will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN deprecated cross-spawn-async@2.2.4: cross-spawn no longer requires a build toolchain, use it instead!
npm WARN optional dep failed, continuing fsevents@1.0.12
npm WARN optional dep failed, continuing fsevents@1.0.12
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue

> spawn-sync@1.0.13 postinstall /home/sfuentes/Projects/myApp/node_modules/pre-commit/node_modules/cross-spawn/node_modules/spawn-sync
> node postinstall

> pre-commit@1.1.3 install /home/sfuentes/Projects/myApp/node_modules/pre-commit
> node install.js

> spawn-sync@1.0.15 postinstall /home/sfuentes/Projects/myApp/node_modules/mockgoose/node_modules/mongodb-prebuilt/node_modules/spawn-sync
> node postinstall

|
> mongodb-prebuilt@5.0.5 postinstall /home/sfuentes/Projects/myApp/node_modules/mockgoose/node_modules/mongodb-prebuilt
> node install.js

done
inside extract, run complete
Done installing MongoDB
npm WARN optional dep failed, continuing fsevents@1.0.12
\
> caniuse-api@1.5.0 postinstall /home/sfuentes/Projects/myApp/node_modules/postcss-cssnext/node_modules/caniuse-api
> node generator.js

caniuse-api: Generation ok
-
> nodejieba@1.4.11 install /home/sfuentes/Projects/myApp/node_modules/limax/node_modules/pinyin/node_modules/nodejieba
> node-gyp rebuild

make: Entering directory `/home/sfuentes/Projects/myApp/node_modules/limax/node_modules/pinyin/node_modules/nodejieba/build'
  CXX(target) Release/obj.target/nodejieba/lib/index.o
  CXX(target) Release/obj.target/nodejieba/lib/nodejieba.o
  SOLINK_MODULE(target) Release/obj.target/nodejieba.node
  COPY Release/nodejieba.node
make: Leaving directory `/home/sfuentes/Projects/myApp/node_modules/limax/node_modules/pinyin/node_modules/nodejieba/build'
npm ERR! Linux 3.13.0-85-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.4.4
npm ERR! npm  v2.15.1
npm ERR! code EPEERINVALID

npm ERR! peerinvalid The package webpack@2.1.0-beta.13 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 extract-text-webpack-plugin@1.0.1 wants webpack@^1.9.11
npm ERR! peerinvalid Peer webpack-dev-middleware@1.6.1 wants webpack@1 || ^2.1.0-beta
npm ERR! peerinvalid Peer chunk-manifest-webpack-plugin@0.1.0 wants webpack@^1.4.0-beta6
npm ERR! peerinvalid Peer babel-plugin-webpack-loaders@0.5.0 wants webpack@>=1.12.9 <3.0.0
npm ERR! peerinvalid Peer webpack-dev-server@2.1.0-beta.0 wants webpack@^2.1.0-beta

npm ERR! Please include the following file with any support request:
npm ERR!     /home/sfuentes/Projects/myApp/npm-debug.log
somus commented 8 years ago

This problem will be fixed once you upgrade to npm 3. Upgrade by running npm install -g npm@next. Let me know whether it resolves your problem?

fuentesjr commented 8 years ago

@somus Yup, that was the issue. Thank you sir. I'll go ahead and close this issue now. By the way, was this relatively obvious?