Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require Node.js >=12 #1597

Merged
merged 1 commit into from Nov 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion .electron-vue/preinstall.js
@@ -1,6 +1,12 @@
'use strict'

const nodeMajor = Number(process.versions.node.match(/^(\d+)\./)[1])
if (nodeMajor < 12) {
console.error('[ERROR] Node.js v12 or above is required.\n')
process.exit(1)
}

if (!/yarn\.js$/.test(process.env.npm_execpath)) {
console.error('Please use yarn to install dependencies.\n')
console.error('[ERROR] Please use yarn to install dependencies.\n')
process.exit(1)
}