Skip to content

Commit 2affc13

Browse files
committed
chore: add info about --skipUpdate flag
1 parent 61a2903 commit 2affc13

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

utils/check-update.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ async function checkUpdate() {
3232

3333
if (hasUpdate) {
3434
spinner.error('Update available');
35-
log.text(`\n${logSymbols.warning} Please update framework7-cli to latest version before continue.`, true);
36-
log.text(`${logSymbols.warning} To update framework7-cli, run in terminal:`, true);
37-
log.text('\nnpm install framework7-cli -g\n', true);
35+
log.text(
36+
`\nPlease update framework7-cli to latest version before continue.\nTo update framework7-cli, run in terminal:`,
37+
);
38+
log.text('\n> npm install framework7-cli -g', true);
39+
log.text('\nTo skip update check run the command with --skipUpdate flag\n', false, 'gray');
3840
process.exit(1);
3941
} else {
4042
spinner.done('All good, you have latest framework7-cli version.');

0 commit comments

Comments
 (0)