Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Matching the version range for all npm packages

On my IntelliJ Idea, I get this alert: the install version "[email protected]" doesn't match the version range "vue@^2.5.16

I know how to solve this: yarn install [email protected].

But I got this problem with all my dependencies. I don't want to solve everything one by one...

like image 698
Pierre Trollé Avatar asked Oct 15 '25 06:10

Pierre Trollé


2 Answers

I solved it by the command: yarn upgrade

like image 134
Pierre Trollé Avatar answered Oct 16 '25 19:10

Pierre Trollé


This can also happen if you had the same dependency defined in both dependencies and devDependencies.

Remove the dependency from one of these locations and then run npm install to fix it.

like image 25
Molten Ice Avatar answered Oct 16 '25 20:10

Molten Ice