Skip to main content

Node.js

LaraEnv installs Node.js LTS and Current versions side-by-side, so each project can use the version it needs.

Installed versions

Each Node.js version lives under C:\laraenv\nodejs\<version>\. The path C:\laraenv\nodejs\current\ is a symlink that always points to the active version.

Install versions from the Installer catalog — see the Installer.

Switching versions

Switch the global active Node version from the runtime chips on the Dashboard.

You can also set a per-project Node version on the project itself — see Projects configuration. The per-project terminal and dev server put that version's node on PATH.

npm and npx

npm and npx are available for the active Node version. Inside a project, they resolve to the project's Node version.

The dev server (npm run dev) uses the project's Node version too — see the Dev server queue.

See also