-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update: re-enable updating local packages #73
Conversation
I'd like an 👀 from @iarna on this one. |
Hello, |
@jmfNodejsUser It is not, it's not yet been merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, it took me a bit to wrap my head around what this was doing:
This is fixing a problem where npm update
won't auto-heal missing links. (The work around is to run npm i
instead, which will.)
I approve of this idea, but there are two things that need to be addressed before it lands:
- It needs a test (this would have helped us understand what the patch was hoping to achieve)
- With this patch and a
file:
type dep,npm outdated -l
crashes, this'll need to be fixed.
Thank you for the reply iarna. Your suggestion to use npm i works and installs/links the first/primary dependency (local node module) in the main project. All sub dependencies of the local node modules are not installed/linked. Except when I delete the package-lock.json first and then run "npm i". In this case, it works and installs all primary and sub dependencies which are all local node modules(i.e. not from the npm registry) |
The problem with using "npm i" is the same mentioned in |
6ca2f43
to
6d0cc95
Compare
Sorry for the confusion. I added tests. As for the |
db63b89
to
b09bc8c
Compare
Make sure publishing with legacy username:password _auth works again
PR-URL: npm#120 Credit: @watilde Reviewed-By: @aeschright
PR-URL: npm#126 Credit: @watilde Reviewed-By: @aeschright
PR-URL: npm#138 Credit: @elidoran Reviewed-By: @aeschright
PR-URL: npm#144 Credit: @larsgw Reviewed-By: @aeschright
PR-URL: npm#145 Fixes: https://npm.community/t/4770 Credit: @larsgw Reviewed-By: @aeschright
…npm#140) PR-URL: npm#140 Credit: @greysteil Reviewed-By: @aeschright
PR-URL: npm#149 Credit: @zkat Reviewed-By: @aeschright
PR-URL: npm#151 Fixes: https://npm.community/t/npm-6-6-0-breaks-access-to-ls-collaborators/5101 Credit: @zkat Reviewed-By: @aeschright
Hello @zkat , @iarna , @larsgw , |
PR #11584 removed the possibility of updating local packages (linked with symlinks) with `npm update`. Reason was that this functionality didn't work in v3.6.0. However, the system behind local dependencies has since changed, and I can't reproduce the original error anymore. Reverts 59e5056
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for fixing things up. This looks like it fulfill's @iarna's requirements, so we're good to go. 👍
PR #11584 removed the possibility of updating local packages (linked with symlinks) with `npm update`. Reason was that this functionality didn't work in v3.6.0. However, the system behind local dependencies has since changed, and I can't reproduce the original error anymore. Reverts 59e5056 Fixes: https://npm.community/t/1725?u=larsgw PR-URL: #73 Credit: @larsgw Reviewed-By: @iarna Reviewed-By: @zkat
This has been merged by hand. Thanks again, @larsgw! |
PR npm/npm#11584 removed the possibility of updating local packages (linked with symlinks) with
npm update
.Reason was that this functionality didn't work in
v3.6.0
. However, the system behind local dependencieshas since changed, and I can't reproduce the original error anymore.
Reverts 53cdb96
See discussion in https://npm.community/t/1725