Closed jamesgeorge007 closed 4 years ago
This might not seem necessary, why would a user opt for a package manager that he/she doesn't have on his/her machine. But it is always good to have all the possible cases covered. I would be happy to shoot a PR on receiving the green signal :+1:
I think this is tougher than it sounds, especially across MS, Mac, Linux. I'd prefer to not take on this complexity, but I would love to show a better, human-readable error message here if it does not exist. Would you be interested in adding a PR for that?
IMO a better idea would be to fall back and consume npm
rather than exiting the process.
In my experience, of the user is asking for something specific and you can’t deliver, it’s better to error and let them resolve. Too easy to miss what’s happened, otherwise.