mason.nvim icon indicating copy to clipboard operation
mason.nvim copied to clipboard

feat(npm): add `install_args` option

Open amittamari opened this issue 1 year ago • 2 comments

(Rework of #1580)

Often, when I'm working, my npm registry is set to the work's registry, which sometimes causes npm installations in Mason to fail.

To overcome this, I added the option to provide install_args to npm, the same as available in pip, so I can configure Mason to always use the default npm registry.

Note: I wasn't sure if I should also support it in lua/mason-core/managers/npm/init.lua, because I could not find any references where it is used (except tests). Let me know, and I can add it if needed.

amittamari avatar Dec 19 '23 08:12 amittamari

Resolved conflicts

amittamari avatar Jan 07 '24 13:01 amittamari

@williamboman can you please give this one a review? 🙏🏻 It's a relatively small change

amittamari avatar Apr 12 '24 10:04 amittamari