-
NPM's dependency syntax allows us to specify exact versions or ranges of versions to use of dependencies. I often specify exact versions in my (Not sure how to handle all cases with the tilde |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There is actually no prefixing done by the plugin itself. It takes the name of the package you're on and runs I just tried to remove the Also, removing it by hand will make your If there is a way to omit |
Beta Was this translation helpful? Give feedback.
There is actually no prefixing done by the plugin itself.
It takes the name of the package you're on and runs
npm install name@version
(or with yarn) in the terminal.I just tried to remove the
^
from the version and then upgraded it to the latest version and^
was put back next to the version so I think you shouldn't do that by hand. Might be wrong tho.Also, removing it by hand will make your
.lock
file out of date if you don't runyarn/npm install
after it. I tested it by removing^
from the version and then tried to update the package to the latest version by runningyarn upgrade name@latest
and I got the followingerror Outdated lockfile. Please run yarn install and try again. info …