Node 10 is not supported anymore
This commit is contained in:
parent
fe392059a8
commit
5a63748877
|
@ -41,7 +41,12 @@ checkFFmpeg(CONFIG)
|
|||
process.exit(-1)
|
||||
})
|
||||
|
||||
checkNodeVersion()
|
||||
try {
|
||||
checkNodeVersion()
|
||||
} catch (err) {
|
||||
logger.error('Error in NodeJS check.', { err })
|
||||
process.exit(-1)
|
||||
}
|
||||
|
||||
import { checkConfig, checkActivityPubUrls, checkFFmpegVersion } from './server/initializers/checker-after-init'
|
||||
|
||||
|
|
|
@ -117,7 +117,7 @@ function checkNodeVersion () {
|
|||
logger.debug('Checking NodeJS version %s.', v)
|
||||
|
||||
if (major <= 10) {
|
||||
logger.warn('Your NodeJS version %s is deprecated. Please upgrade.', v)
|
||||
throw new Error('Your NodeJS version ' + v + ' is not supported. Please upgrade.')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue