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.
Choose Automatic to detect Node from .nvmrc, .node-version, or package.json engines.node, or select a manual project version. New project terminals and Dev servers use the effective version. See Automatic detection and Project configuration.
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
- Installer — download Node.js versions
- Projects configuration — set a per-project Node version
- Dev server queue — run
npm run devper project