Skip to content

npm installer

Install npm packages with elide install --ecosystems=npm: Elide reads package.json and the npm block in elide.pkl, and links packages into node_modules.

On this page

Elide installs npm packages and links them into the project’s node_modules.

elide install --ecosystems=npm
0:12 / 0:12

npm is opt-in; a bare elide install installs Maven only. Elide reads package.json and the npm block in elide.pkl:

amends "elide:project.pkl"

dependencies {
  npm {
    packages {
      "react@19.0.0"
    }
    devPackages {
      "typescript@5.6.2"
    }
  }
}
PropertyMeaning
packagesname@version or @scope/name@version.
devPackagesDevelopment-time packages.

Packages go to .dev/dependencies/npm/node_modules, linked from node_modules at the project root. Resolution is recorded in aube-lock.yaml. Ecosystem selection and shared options: Dependencies.

Was this page helpful?