Bug: ni 's package is wrong
Simon-He95 opened this issue · comments
Simon He commented
Describe the bug
Reproduction
remove local .lock file and execute ni
System Info
remove local .lock file and execute ni
Used Package Manager
npm
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
- The provided reproduction is a minimal reproducible of the bug.
Anthony Fu commented
I can not reproduce it. #121 does not seem to be a correct fix to me, as you cd into a sub package, ni should always search up for the closest lock file that occurs.
Simon He commented
Anthony Fu commented
You should not have a lock in your root outside of the project tbh. For the field, yes I think we should read it up for every package.json until we found one lock or the field.
Simon He commented
I think this is not the point, he should read the lock in my current directory instead of from my root directory