mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-21 05:02:39 +08:00
add super early node version check
This commit is contained in:
parent
1ad2f09035
commit
bb81f639b3
@ -1,3 +1,9 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
const majorNodeVersion = parseInt(process.version.toString().replace('v', '').split('.')[0], 10);
|
||||
if (majorNodeVersion < 16) {
|
||||
console.error('To run storybook you need to have node 16 or higher');
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
require('../dist/generate.js');
|
||||
|
Loading…
x
Reference in New Issue
Block a user