admin管理员组

文章数量:1335625

My current config is:

 "@vue/test-utils": "^1.0.0-beta.25"

How can make it exclude a specific version of this package while still using the caret ^ rages?

The version which I want to exclude is 1.0.0-beta.31, because this version currently broke my entire tests.

My current config is:

 "@vue/test-utils": "^1.0.0-beta.25"

How can make it exclude a specific version of this package while still using the caret ^ rages?

The version which I want to exclude is 1.0.0-beta.31, because this version currently broke my entire tests.

Share Improve this question asked Feb 10, 2020 at 4:16 Tu NguyenTu Nguyen 10.2k4 gold badges29 silver badges52 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 8

I believe the syntax is something like as follows:

"@vue/test-utils": ">1.0.0-beta.25 <1.0.0-beta.31 || ^1.0.0-beta.32"

You can find the rules for version resolution here.

本文标签: javascriptHow to exclude a specific version of a npm packageStack Overflow