Skip to content

Commit 0942198

Browse files
authored
health: update requirement to npm >= 7 (#1480)
1 parent c811fbf commit 0942198

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lua/mason/health.lua

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,10 @@ local function check_languages()
228228
version_check = function(version)
229229
-- Parses output such as "8.1.2" into major, minor, patch components
230230
local _, _, major = version:find "(%d+)%.(%d+)%.(%d+)"
231-
-- Based off of general observations of feature parity
232-
if tonumber(major) < 6 then
233-
return "npm version must be >= 6"
231+
-- Based off of general observations of feature parity.
232+
-- In npm v7, peerDependencies are now automatically installed.
233+
if tonumber(major) < 7 then
234+
return "npm version must be >= 7"
234235
end
235236
end,
236237
},

0 commit comments

Comments
 (0)