nuxt / devtools

Unleash Nuxt Developer Experience
https://devtools.nuxt.com
MIT License
2.89k stars 161 forks source link

adding options of package managers when installing modules #263

Open Gianthard-cyh opened 1 year ago

Gianthard-cyh commented 1 year ago

installing modules is currently using npm, but it will be better to show something like a dialog before running the scripts for users to choose the pakage manager they want to use.

image

Gianthard-cyh commented 1 year ago

May add a global option for pakage managers

Gianthard-cyh commented 1 year ago

It seems that devtools is based on nypm, which only supports three major pakage managers. image Is it possible to add a customise configuration to allow users user their own pakage managers like cnpm?

arashsheyda commented 1 year ago

@Gianthard-cyh you can change this by setting "packageManager": "cnpm" in your project's package.json file.

@antfu is it a good idea to have a option in user's setting to change this behaviour? what do you think

antfu commented 1 year ago

I think if needed, changes should be done in nypm instead of in devtools.