Node dependency installation
Generated Node projects intentionally support two dependency states: The generated workflow checks for a lockfile on every run. Without one, it performs a...
Repository-relative paths and “this checkout” refer to the Konclave source repository, not this website. The source link above identifies the exact revision used here.
Generated Node projects intentionally support two dependency states:
- A new scaffold has no committed
package-lock.jsonbecause symbols, optional components, and composed frontends can change the final dependency graph. - The first
npm installcreates a lockfile for the resolved project. Commit that lockfile so subsequent CI runs usenpm ci.
The generated workflow checks for a lockfile on every run. Without one, it performs a normal install and uses the shared npm download cache. With one, it performs the reproducible clean install while retaining the same cache.
Keep package.json and package-lock.json together when dependencies change. Do not
delete the lockfile to bypass an install failure; refresh it deliberately with the
project’s declared Node/npm toolchain and review the dependency delta.
.npmrc disables audit and funding network calls in routine installs while preserving
normal lockfile generation. Projects may change that policy explicitly after scaffold.
Content: Konclave,Apache-2.0. Revision: 8d0d3676e9fc746749a4fc04ddeb4499023c4104.