close

[Solved] npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself in javascript. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself Error Occurs?

Today I get the following error npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself in javascript.

How To Solve npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself Error ?

  1. How To Solve npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself Error ?

    To Solve npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself Error npm install -g npm-install-peers
    it will add all the missing peers and remove all the error

  2. npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself

    To Solve npm WARN … requires a peer of … but none is installed. You must install peer dependencies yourself Error npm install -g npm-install-peers
    it will add all the missing peers and remove all the error

Solution 1

The accepted answer of using npm-install-peers did not work, nor removing node_modules and rebuilding. The answer to run

npm install --save-dev @xxxxx/[email protected]

for each one, with the xxxxx referring to the exact text in the peer warning, worked. I only had four warnings, if I had a dozen or more as in the question, it might be a good idea to script the commands.

Solution 2

npm install -g npm-install-peers

it will add all the missing peers and remove all the error

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also Read

Leave a Comment