diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/mason/health.lua | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lua/mason/health.lua b/lua/mason/health.lua index ade8a29d..9e21215b 100644 --- a/lua/mason/health.lua +++ b/lua/mason/health.lua @@ -228,9 +228,10 @@ local function check_languages() version_check = function(version) -- Parses output such as "8.1.2" into major, minor, patch components local _, _, major = version:find "(%d+)%.(%d+)%.(%d+)" - -- Based off of general observations of feature parity - if tonumber(major) < 6 then - return "npm version must be >= 6" + -- Based off of general observations of feature parity. + -- In npm v7, peerDependencies are now automatically installed. + if tonumber(major) < 7 then + return "npm version must be >= 7" end end, }, |
