UNPKG

518 BJavaScriptView Raw
1const
2 version = process.version.split('.'),
3 major = parseInt(version[0].replace(/\D/g,''), 10)
4 minor = parseInt(version[1].replace(/\D/g,''), 10)
5
6if (major < 8 || (major === 8 && minor < 9)) {
7 console.warn('\x1b[41m%s\x1b[0m', 'INCOMPATIBLE NODE VERSION')
8 console.warn('\x1b[33m%s\x1b[0m', 'Quasar CLI requires Node 8.9.0 or superior')
9 console.warn('')
10 console.warn('⚠️ You are running Node ' + version)
11 console.warn('Please install a compatible Node version and try again')
12
13 process.exit(1)
14}