NPM Installer

Install npm packages with Elide

npm installation is opt-in:

elide install --ecosystems=npm
Installing an npm dependency and running a project with Elide

Elide reads npm dependencies from package.json and from the npm block in elide.pkl:

amends "elide:project.pkl"

dependencies {
  npm {
    packages {
      "react@19.0.0"
    }
    devPackages {
      "typescript@5.6.2"
    }
  }
}

A bare elide install installs Maven dependencies only. To install both:

elide install --ecosystems=maven,npm

Packages are installed below .dev/dependencies/npm/node_modules. Elide links that directory to node_modules at the project root so ordinary module resolution can find it. The npm resolver writes aube-lock.yaml for its resolution state.

Use Dependencies for ecosystem selection and shared install options.