async fn run_npm_install(
cmd: &CommandResolveCliData,
broker: &Arc<Broker>,
notices: &CliNotices,
paths: &DataPaths,
provider: &'static ProviderConfig,
pinned_version: &str,
) -> Result<Result<InstallOutcome, InstallError>, String>Expand description
One install routine for this and the startup warm-up
(cli_install::install_pinned_cli): cross-instance lock
held for npm’s whole lifetime — inside the blocking task,
so a timed-out RPC can’t release it early — reuse of an
install another instance finished while we waited, and
the completion marker only after the shim is verified.
The pane says it’s installing, then how it went: a pane
restored at startup otherwise just starts slower.