meteorhacks / npm

Complete NPM integration for Meteor
http://meteorhacks.com/complete-npm-integration-for-meteor.html
MIT License
508 stars 43 forks source link

npm ERR! peerinvalid #101

Closed kimsk closed 8 years ago

kimsk commented 8 years ago

I am not sure if this has something to do with meteorhacks:npm, but I hope someone could help.

I am trying to use material-ui with my meteor project by using meteorhacks:npm, but I got the npm errors.

meteor 1.2.0.2 node 4.1.1 npm 3.3.5

Here are steps to reproduce:

  1. meteor create app
  2. meteor add react
  3. meteor add meteorhacks:npm cosmos:browserify
  4. run meteor to generate packages.json
  5. Add "material-ui": "0.10.1" and "react-tap-event-plugin": "0.1.7" to packages.json
  6. run meteor and I got the error below.
=> Started proxy.                             
=> Started MongoDB.                           
npm-container: updating npm dependencies -- material-ui, react-tap-event-plugin...
=> Errors prevented startup:                  

   While building package npm-container:
   error: couldn't install npm package material-ui@0.10.1: Command failed: npm ERR! peerinvalid The package react does not satisfy its
   siblings' peerDependencies requirements!
   npm ERR! peerinvalid Peer material-ui@0.10.1 wants react@>=0.13
   npm ERR! peerinvalid Peer react-tap-event-plugin@0.2.0 wants react@^0.14.0-0

   npm ERR! System Darwin 14.5.0
   npm ERR! command
   "/Users/karlkim/.meteor/packages/meteor-tool/.1.1.9.1qlg91++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
   "/Users/karlkim/.meteor/packages/meteor-tool/.1.1.9.1qlg91++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm"
   "install" "material-ui@0.10.1"
   npm ERR! cwd /Users/karlkim/Documents/GitHub/meteor-react-material-ui/app-1.2/packages/npm-container/.npm/package-new-1g38vw2
   npm ERR! node -v v0.10.40
   npm ERR! npm -v 1.4.28
   npm ERR! code EPEERINVALID
   npm ERR! 
   npm ERR! Additional logging details can be found in:
   npm ERR!
   /Users/karlkim/Documents/GitHub/meteor-react-material-ui/app-1.2/packages/npm-container/.npm/package-new-1g38vw2/npm-debug.log
   npm ERR! not ok code 0
   npm ERR! peerinvalid The package react does not satisfy its siblings' peerDependencies requirements!
   npm ERR! peerinvalid Peer material-ui@0.10.1 wants react@>=0.13
   npm ERR! peerinvalid Peer react-tap-event-plugin@0.2.0 wants react@^0.14.0-0

   npm ERR! System Darwin 14.5.0
   npm ERR! command
   "/Users/karlkim/.meteor/packages/meteor-tool/.1.1.9.1qlg91++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
   "/Users/karlkim/.meteor/packages/meteor-tool/.1.1.9.1qlg91++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm"
   "install" "material-ui@0.10.1"
   npm ERR! cwd /Users/karlkim/Documents/GitHub/meteor-react-material-ui/app-1.2/packages/npm-container/.npm/package-new-1g38vw2
   npm ERR! node -v v0.10.40
   npm ERR! npm -v 1.4.28
   npm ERR! code EPEERINVALID
   npm ERR! 
   npm ERR! Additional logging details can be found in:
   npm ERR!
   /Users/karlkim/Documents/GitHub/meteor-react-material-ui/app-1.2/packages/npm-container/.npm/package-new-1g38vw2/npm-debug.log
   npm ERR! not ok code 0

The steps above used to work fine before meteor 1.2 though. Thanks!

perminder-klair commented 8 years ago

Got same issue!

nicholasalanbrown commented 8 years ago

I'm getting this as well, any time I add a new NPM package.

DavidFishman commented 8 years ago

Having the same problem on Windows.

kevohagan commented 8 years ago

i am also finding similar issues with different dependencies versions

pahans commented 8 years ago

did you follow instructions on the read me after updating to Meteor 1.2?

kevohagan commented 8 years ago

yes, i also get this :

While building package npm-container: error: Some filenames in your package have invalid characters. The following file paths in the NPM module 'reapp-ui' have colons, ':', which won't work on Windows: reapp-ui/assets/icons/battery-3:4.svg

On Thu, Oct 15, 2015 at 12:51 PM Pahan Sarathchandra < notifications@github.com> wrote:

did you follow instructions on the read me https://github.com/meteorhacks/npm#use-npm-modules-with-your-meteor-app to update Meteor 1.2?

— Reply to this email directly or view it on GitHub https://github.com/meteorhacks/npm/issues/101#issuecomment-148350059.

kimsk commented 8 years ago

I now use material-ui version 0.12.1, and everything seems to be ok now. I will close this issue.

Here is sample of Meteor 1.2.0.2 + React/Material-UI if anyone is interested.