Skip to content

Commit c58b675

Browse files
authored
Force Node version (#1473)
1 parent 899a995 commit c58b675

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
engine-strict=true

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,11 @@ Lerna has some common failure modes that you may encounter:
7979
1. `npm ci` fails with a typescript compilation error about a missing package.
8080
This error likely means that the failing package has a `prepare` entry compiling the typescript in its `package.json`.
8181
Fix this error by moving that logic to the `prepublishOnly` entry.
82-
1. The software builds locally but fails in CI, or vice-versa.
82+
2. The software builds locally but fails in CI, or vice-versa.
8383
This error likely means that some local build caches need to be cleaned.
8484
The build error may not indicate that this is a caching issue, e.g., it may appear that the packages are being built in the wrong order.
8585
Delete `node_modules/`, `lib/` and `tsconfig.tsbuildinfo` from each package's subdirectory. then try again.
86+
3. `npm ci` fails due to wrong node version. Make sure to be using `v18`. Node version `v21` is not supported and known to cause issues.
8687

8788
## Audit / Feature Status
8889

package-lock.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,8 @@
3333
"devDependencies": {
3434
"lerna": "^6.4.1"
3535
},
36+
"engines" : {
37+
"node" : ">=16.0.0 <19.0.0"
38+
},
3639
"version": "0.0.1"
3740
}

0 commit comments

Comments
 (0)