Result
Install the version requested by this module and locate its installation directory. This task does not start Serve, create project files, or configure external services.
Prerequisites
Install mise and obtain network access to the upstream package source. Use an operating system supported by the selected mise backend and upstream release. The npm backend also needs a usable Node.js/npm environment. Run these commands from the repository root. Installation downloads and executes third-party installation code; review the source first.
Steps
-
Read mise.toml and confirm the
npm:serveentry still requestslatest. -
Install that explicit request. This does not rewrite the version declaration:
mise install "npm:serve@latest" -
Locate the installed tool without assuming its executable has the package name:
mise where "npm:serve@latest"
Verification
The installation command should finish successfully. mise where should return an existing installation directory, not a missing-version error. This confirms installation only, not application behavior, editor activation, credentials, or service connectivity.
The npm package is installed without a document root or bind address. Review the network listener before exposing private files.
Recovery
If installation fails, retain the error and check network access, backend prerequisites, and upstream platform support. Keep version pins unchanged while diagnosing the failure. Re-run the same explicit installation request after fixing the cause. These steps do not change project data or start services, so no application rollback is required.