aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers/checker-before-init.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-24 13:52:32 +0100
committerChocobozzz <me@florianbigard.com>2021-12-24 13:52:32 +0100
commit4ff75a3b2c48b2b0a1250cb551d2b73eb26d5296 (patch)
tree5341c35344a167dd51e29f5419ac7a26dcc735e7 /server/initializers/checker-before-init.ts
parent5a637488778055906dbacdca735565b2f46f0cf7 (diff)
downloadPeerTube-4ff75a3b2c48b2b0a1250cb551d2b73eb26d5296.tar.gz
PeerTube-4ff75a3b2c48b2b0a1250cb551d2b73eb26d5296.tar.zst
PeerTube-4ff75a3b2c48b2b0a1250cb551d2b73eb26d5296.zip
Deprecate node 12
Diffstat (limited to 'server/initializers/checker-before-init.ts')
-rw-r--r--server/initializers/checker-before-init.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/initializers/checker-before-init.ts b/server/initializers/checker-before-init.ts
index d2f3bb128..458005b98 100644
--- a/server/initializers/checker-before-init.ts
+++ b/server/initializers/checker-before-init.ts
@@ -119,6 +119,10 @@ function checkNodeVersion () {
119 if (major <= 10) { 119 if (major <= 10) {
120 throw new Error('Your NodeJS version ' + v + ' is not supported. Please upgrade.') 120 throw new Error('Your NodeJS version ' + v + ' is not supported. Please upgrade.')
121 } 121 }
122
123 if (major <= 12) {
124 logger.warn('Your NodeJS version ' + v + ' is deprecated. Please upgrade.')
125 }
122} 126}
123 127
124// --------------------------------------------------------------------------- 128// ---------------------------------------------------------------------------