Skip to content

Problem: when using node version managers, PI keeps reinstalling plugins when opening repositories #2072

@jordyvandomselaar

Description

@jordyvandomselaar

What do you want to change?

I'd like for there to be a way to re-use one version of node/npm to install extensions so that Pi doesn't keep reinstalling packages.

Why?

I'm using Mise, but would also apply to asdf. Whenever I open a new repository that uses a node version I haven't used before, PI has to install plugins again. In some cases installation fails because of unsupported node/npm versions.

How? (optional)

Either of these could work. I'm partial to option #2 myself.

  1. Adding a config option to hard-code node/npm paths
  2. Config option to customize the install command so I can do something like mise exec node@20 -- npm install

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions