NPM View package version information

View package on a remote server version information

npm view webpack version // View npm package webpack on the latest version of the server
npm view webpack versions // View webpack package on the server all the version information 

npm info webpack // and
npm view webpack version command similar but more comprehensive information

 

Check locally installed version of the package information

LS WebPACK npm     // check the version information package pkg in a directory ------ Note that this command must be executed in a project
 
npm LS WebPACK -g     // Check local global package pkg installed version information

 

npm syntax version number

abc npm version number to manage the installation package, a version number is reached, there is a significant change api, are generally not backward compatible, b is the minor version number, new features, backward compatible, c is the patch number, usually fix some bug. npm the installation package allows some special notation version range of installation, such as:

~ Abc: take the value of the latest version of c, a and b unchanged
 ^ abc: Take b and c are the latest version, a remains unchanged

 

Guess you like

Origin www.cnblogs.com/jing-tian/p/11281773.html