You should go through documentation before getting into anything :)
Using npm i
will install whatever is stated in the package.json
. If the package.json
binds the packages to versions, then it will install that specific version. Most often, package.json
would use the ^
character before the package version, which stands for any version above the mentioned version, and if that is the case for you, yes, npm i
will install the latest version of those packages.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…