-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[BUG] --install-links=true
installs/updates local paths differently from --install-links=false
#7169
Comments
--install-links=true
installs/updates local paths differently from --install-links=false
--install-link=true should be used when you want to treat the local folder as package instead of symlink |
Can you expand on that? I'm not sure what action you're recommending. Thanks |
This is documented in https://docs.npmjs.com/cli/v8/commands/npm-install as below lines
#7171 is an example issue which show the need for |
Closng the issue due to inactivity. Feel free to open the iissue if you need more iinformation |
@kchindam-infy Thanks for the explanation. I'm confused about this part:
If this is the case, shouldn't "Version 2" have been printed? I changed |
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
"Version 1" is printed.
--install-links=false
(full behavior), modifications to that local path are reflected in the dependent app.--install-links=true
, modifications to that local path do not update the dependency unless the version number is incremented.According to the local paths documentation:
I believe 1. is desired and intended behavior because it makes offline testing more convenient. 2. came as a surprise to me and I can't find it documented anywhere. For this reason, I believe this difference in behavior is a bug.
Expected Behavior
"Version 2" is printed.
Steps To Reproduce
cd update-install-links-reproducible
./setup.sh
lib-package/index.js
in some way, e.g., make it log "Version 2"./npm.sh install/update
with or without--force
, with or withoutlib-package
, etc../npma.sh run exec
Environment
The text was updated successfully, but these errors were encountered: