Replies: 1 comment
-
You could do a check in your code, and exit with a process error ( const answers = await inquirer.prompt({ ... });
if (answer.installVue && !isVPNOn()) {
console.log('Please connect to the VPN');
process.exit(1);
}
const moreAnswers = await inquirer.prompt({ ... }); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to prevent the user to install the Vue CLI if the VPN isn't "on", does anyone already did something like it?
Beta Was this translation helpful? Give feedback.
All reactions