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.
- Adding a config option to hard-code node/npm paths
- Config option to customize the install command so I can do something like
mise exec node@20 -- npm install
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.
mise exec node@20 -- npm install