After I upgraded to latest stable node
and npm
, I tried npm install moment --save
. It saves the entry in the package.json
with the caret(^)
prefix. Previously, it was a tilde(~)
prefix.
- Why are these changes made in
npm
? - What is the difference between
tilde(~)
andcaret(^)
? - What is the advantages over others?
转载于:https://stackoverflow.com/questions/22343224/whats-the-difference-between-tilde-and-caret-in-package-json