Verzia balíka npm

Príklady kódu

11
0

verzia kontrolného balíka npm

local packages:
~$ npm list

globally installed packages:
~$ npm list -g

specific package:
~$ npm list <package>
4
0

verzia npm

npm install -g npm@latest
3
0

nainštalujte balík npm

npm install package-name

To save as a dependency:
npm install package-name --save
2
0

verzia balíka npm

// How to increment your project version
Ex: 1.0.0

* npm version patch ---> 1.0.1
* npm version minor ---> 1.1.0
* npm version major ---> 2.0.0

npm version [<newversion> | major | minor | patch | premajor | 
preminor | prepatch | prerelease [--preid=<prerelease-id>] | from-git]
1
0

čo znamená " * " verzia v závislosti od balíka npm

Finally there is the *, which while available, isn’t used as often. The primary reason for its less frequent use is the fact that it acts as a stand in for either the major, minor, or patch number and catches any version number for the place that it represents. For example a dependency with a version of * would equate to any version that was greater than or equal to 0.0.0, while 1.* would allow versions greater than or equal to 1.0.0 and less than 2.0.0.
0
0

ako nainštalovať najnovšiu verziu balíka npm

//For global packages 
npm i -g <package name>@latest
npm i -g express@latest

//For loacal packages
npm outdated
npm update

//Manually updating local packages
npm i <package name>@latest
npm update "react" "react-dom"

V iných jazykoch

Táto stránka je v iných jazykoch

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................