Sergio Ewerton
Sergio Ewerton

Reputation: 31

You must install peer dependencies yourself

sudo npm install

result:

npm WARN [email protected] requires a peer of sinon@>=2.1.0 <5 but none is installed. You must install peer dependencies yourself.

Upvotes: 3

Views: 6530

Answers (2)

mae
mae

Reputation: 15666

You can resolve this issue by running

npm i --legacy-peer-deps

Upvotes: 0

Ardeshir Izadi
Ardeshir Izadi

Reputation: 1073

npm does not install dependencies specified as peerDependecy. This may seem unpleasing for people who used to bower, but that's no problem. You'll get used to it soon.

peerDependencies are dependencies that the package developer actually depends on it, but doesn't mention it as dependency. He/She/They (the developers) just suppose that wherever their package is going to be used, there will be karma-sinon-chai.

You need to install peerDependencys of a package yourself!

Upvotes: 2

Related Questions