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.

Terminal
bash
elide install --ecosystems=npm
Installing an npm dependency and running a project with Elide
 ~/demo  elide install --ecosystems=npm
[479ms] ✓ NPM packages installed (477ms)
[481ms] ✓ Dependencies installed in 481ms
 ~/demo  elide run app.ts
Hello, Ada!
 









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

pkl
amends "elide:project.pkl"

dependencies {
  npm {
    packages {
      "react@19.0.0"
    }
    devPackages {
      "typescript@5.6.2"
    }
  }
}
utf-8 · pkl · Lines: 12
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?