Skip to content

Commit

Permalink
fix: ignore node prereleases in npm engines check (#6574)
Browse files Browse the repository at this point in the history
They don't currently have any so that code would never have mattered

cf https://nodejs.org/download/release/
  • Loading branch information
wraithgar committed Jun 20, 2023
1 parent 405ffbf commit 939a188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/es6/validate-engines.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const { engines: { node: engines }, version } = require('../../package.json')
const npm = `v${version}`

module.exports = (process, getCli) => {
const node = process.version.replace(/-.*$/, '')
const node = process.version

/* eslint-disable-next-line max-len */
const unsupportedMessage = `npm ${npm} does not support Node.js ${node}. This version of npm supports the following node versions: \`${engines}\`. You can find the latest version at https://nodejs.org/.`
Expand Down

0 comments on commit 939a188

Please sign in to comment.