diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-01 14:08:03 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-01 14:08:03 +0100 |
commit | 90fbb784989c598112785026d6620f63afa13098 (patch) | |
tree | 43b48f8a9d5507b47b7da6664af20c7c2b78b1db /server/initializers | |
parent | 19e7a90045345b531a489289dc8d4e032fa15d6c (diff) | |
download | PeerTube-90fbb784989c598112785026d6620f63afa13098.tar.gz PeerTube-90fbb784989c598112785026d6620f63afa13098.tar.zst PeerTube-90fbb784989c598112785026d6620f63afa13098.zip |
Node 12 is not supported anymore
Diffstat (limited to 'server/initializers')
-rw-r--r-- | server/initializers/checker-before-init.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/server/initializers/checker-before-init.ts b/server/initializers/checker-before-init.ts index fe7006083..36401f95c 100644 --- a/server/initializers/checker-before-init.ts +++ b/server/initializers/checker-before-init.ts | |||
@@ -117,12 +117,8 @@ function checkNodeVersion () { | |||
117 | 117 | ||
118 | logger.debug('Checking NodeJS version %s.', v) | 118 | logger.debug('Checking NodeJS version %s.', v) |
119 | 119 | ||
120 | if (major <= 10) { | ||
121 | throw new Error('Your NodeJS version ' + v + ' is not supported. Please upgrade.') | ||
122 | } | ||
123 | |||
124 | if (major <= 12) { | 120 | if (major <= 12) { |
125 | logger.warn('Your NodeJS version ' + v + ' is deprecated. Please upgrade.') | 121 | throw new Error('Your NodeJS version ' + v + ' is not supported. Please upgrade.') |
126 | } | 122 | } |
127 | } | 123 | } |
128 | 124 | ||