0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-12-30 22:34:10 -05:00

fix: minium version node.js v18

This commit is contained in:
Juan Picado 2024-05-27 00:14:07 +02:00
parent 6edd6d29a7
commit 33272ee8b9

View file

@ -10,7 +10,7 @@ export const resolveConfigPath = function (storageLocation: string, file: string
return path.resolve(path.dirname(storageLocation), file); return path.resolve(path.dirname(storageLocation), file);
}; };
export const MIN_NODE_VERSION = '12'; export const MIN_NODE_VERSION = '18';
export function isVersionValid(version) { export function isVersionValid(version) {
return semver.satisfies(version, `>=${MIN_NODE_VERSION}`); return semver.satisfies(version, `>=${MIN_NODE_VERSION}`);