Skip to content

Commit

Permalink
Update preinstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Jun 9, 2022
1 parent 96bcf39 commit b4af0de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/cli/scripts/preinstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,10 @@ const white = (str) => WHITE_BRIGHT + str + RESET
export function main() {
const nodeVersions = process.version.split('.')
const nodeMajorVersion = parseInt(nodeVersions[0].slice(1))
const nodeMinorVersion = parseInt(nodeVersions[1])
if (nodeMajorVersion < 12 || (nodeMajorVersion === 12 && nodeMinorVersion < 6)) {
if (nodeMajorVersion < 14) {
console.error(
drawBox({
str: `Prisma only supports Node.js >= 12.6`,
str: `Prisma only supports Node.js >= 14`,
verticalPadding: 1,
horizontalPadding: 3,
}),
Expand Down

0 comments on commit b4af0de

Please sign in to comment.