diff options
| author | William Boman <william@redwill.se> | 2023-08-29 18:39:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-29 18:39:00 +0200 |
| commit | 0942198fb9a998b6ccee36fb8dd7495eb8ba659c (patch) | |
| tree | a2320a18ec76ca36716c965e83ffdf3e2ab37e0f /lua | |
| parent | fix(registry): reset registries state when setting registries (#1474) (diff) | |
| download | mason-0942198fb9a998b6ccee36fb8dd7495eb8ba659c.tar mason-0942198fb9a998b6ccee36fb8dd7495eb8ba659c.tar.gz mason-0942198fb9a998b6ccee36fb8dd7495eb8ba659c.tar.bz2 mason-0942198fb9a998b6ccee36fb8dd7495eb8ba659c.tar.lz mason-0942198fb9a998b6ccee36fb8dd7495eb8ba659c.tar.xz mason-0942198fb9a998b6ccee36fb8dd7495eb8ba659c.tar.zst mason-0942198fb9a998b6ccee36fb8dd7495eb8ba659c.zip | |
health: update requirement to npm >= 7 (#1480)
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, }, |
