source: imaps-frontend/node_modules/update-browserslist-db/check-npm-version.js

main
Last change on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 401 bytes
Line 
1let { execSync } = require('child_process')
2let pico = require('picocolors')
3
4try {
5 let version = parseInt(execSync('npm -v'))
6 if (version <= 6) {
7 process.stderr.write(
8 pico.red(
9 'Update npm or call ' +
10 pico.yellow('npx browserslist@latest --update-db') +
11 '\n'
12 )
13 )
14 process.exit(1)
15 }
16 // eslint-disable-next-line no-unused-vars
17} catch (e) {}
Note: See TracBrowser for help on using the repository browser.