Skip to content

Commit

Permalink
fix: specify required node range (#3101)
Browse files Browse the repository at this point in the history
fixes #3035
  • Loading branch information
manucorporat authored Feb 23, 2023
1 parent 3ed5d99 commit 3bb72d1
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
],
"packageManager": "[email protected]",
"engines": {
"node": ">=16",
"node": ">=16.8.0 <18.0.0 || >=18.11",
"npm": "please-use-pnpm",
"yarn": "please-use-pnpm",
"pnpm": ">=7.18.0"
Expand Down
8 changes: 8 additions & 0 deletions packages/create-qwik/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ function checkNodeVersion() {
)
);
}
} else if (Number(majorVersion) === 18) {
if (Number(minorVersion) < 11) {
console.error(
color.red(
`Node.js 18.11 or higher is REQUIRED. From Node 18.0.0 to 18.11.0, there is a bug preventing correct behaviour of Qwik. You are currently running Node.js ${version}. https://github.com/BuilderIO/qwik/issues/3035`
)
);
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/create-qwik/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"kleur": "4.1.5"
},
"engines": {
"node": ">=16",
"node": ">=16.8.0 <18.0.0 || >=18.11",
"npm": ">=6.0.0"
}
}
2 changes: 1 addition & 1 deletion packages/qwik-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"build": "vite build --mode lib"
},
"engines": {
"node": ">=16"
"node": ">=16.8.0 <18.0.0 || >=18.11"
},
"exports": {
".": {
Expand Down
3 changes: 3 additions & 0 deletions packages/qwik-city/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@
"bugs": {
"url": "https://github.com/BuilderIO/qwik/issues"
},
"engines": {
"node": ">=16.8.0 <18.0.0 || >=18.11"
},
"private": true,
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/qwik/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,6 @@
"Builder.io"
],
"engines": {
"node": ">=16.8.0"
"node": ">=16.8.0 <18.0.0 || >=18.11"
}
}
1 change: 1 addition & 0 deletions starters/apps/base/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
3 changes: 3 additions & 0 deletions starters/apps/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@
"vite": "latest",
"vite-tsconfig-paths": "3.5.0"
},
"engines": {
"node": ">=16.8.0 <18.0.0 || >=18.11"
},
"private": true
}

0 comments on commit 3bb72d1

Please sign in to comment.