Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Detect number of parameters, exit if less then 2.
Without this detection, if a user gives no parameter, the error message will be: > shift: can't shift that many if a user gives no package name, the error message will be: > ! Cannot read property 'dependencies' of undefined Tell the users to pass at least 2 parameters and then print `pnpm-install --help` to improve the UX.
- Loading branch information