0

I'm trying to install materialize-css with npm:

npm install materialize-css --save-dev

But I get the following error:

2887 error node v4.2.4
2888 error npm v2.14.12
2889 error code EPEERINVALID
2890 error peerinvalid The package [email protected] does not satisfy its siblings' peerDependencies requirements!
2890 error peerinvalid Peer [email protected] wants es6-shim@^0.35.0

What does this error mean and how can I fix it?

4
  • Have you tried deleting the entire npm package folder and re running npm install? Commented Aug 25, 2016 at 19:27
  • @FabrizioMigotto No, let me give it a try! Commented Aug 25, 2016 at 19:34
  • @FabrizioMigotto I deleted the entire node_modules and reinstalled everything from scratch, and materialize was installed this time :) Commented Aug 25, 2016 at 20:18
  • Great, answer posted @Meysam Commented Aug 25, 2016 at 20:23

2 Answers 2

1

Try to delete the entire node_modules folder and re run npm install

Sign up to request clarification or add additional context in comments.

Comments

0

It means that you have es6-shim version 0.33.13 installed and angular2 version 2.0.0-beta.17 wants a higher version (specifically 0.35.0 or higher). You need to update that package (es6-shim) to at least that version to satisfy the dependency

4 Comments

Isn't npm meant to handle those dependencies?
It all depends on how the package lists the dependencies, it doesn't have to install them, which is where you can run into version conflicts. Do you have the es6-shim package specifically listed in your package.json
No I don't have it in package.json. I deleted the entire node_modules and reinstalled everything from scratch, and materialize was installed this time :)
then you just had a conflicting version already installed, easy fix!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.