koltyakov / generator-sppp

🐾 SP Pull-n-Push - Yeoman generator for SharePoint client-side applications
MIT License
64 stars 12 forks source link

Add global setting for default package manager to use #13

Open koltyakov opened 6 years ago

koltyakov commented 6 years ago

If numerous package managers are installed (npm, yarn, pnpm), provide a possibility which package manager to use by default.

clechner77 commented 4 years ago

Note on package managers, pnpm did not play nice with the current version. Apologies for hijacking this thread.

koltyakov commented 4 years ago

@clechner77 could you please describe what was your problem with pnpm? I tried yo sppp --pm pnpm, React preset. Initial, secondary. Everything went smoothly.

image

Win 10, Node v10.14.1, pnpm v4.7.2

clechner77 commented 4 years ago

Did you do an initial build? My install was fine. I'll check my environment here in a bit and get you some errors.

koltyakov commented 4 years ago

Oh, yeah. Thanks, now I see an issue. Not sure what's it, but at least can replicate.

koltyakov commented 4 years ago

Looping back to issues. The issue with pnpm should be fixed in 3.8.1. pnpm requires --shamefully-hoist option, otherwise, npm scripts can't see locally installed dev dependencies which are used in pipelines.

clechner77 commented 4 years ago

Worked. Appreciate the constant support.

koltyakov commented 4 years ago

Thank you @clechner77! In many open source project is a common disease to abandon any communications and never answer to issues. I hate such behavior of some maintainers and always try being in touch.