mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 17:15:25 +02:00
Create npm.md
This commit is contained in:
parent
ec617bd22b
commit
0a4c0f0a37
1 changed files with 23 additions and 0 deletions
23
common/npm.md
Normal file
23
common/npm.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
# npm
|
||||
|
||||
> Node package manager, to manage Node.js projects and install module dependencies.
|
||||
|
||||
- Create a new project in the current folder
|
||||
|
||||
`npm init`
|
||||
|
||||
- Download all dependencies referenced in package.json
|
||||
|
||||
`npm install`
|
||||
|
||||
- Download a given dependency, and add it to the package.json
|
||||
|
||||
`npm install {{module_name}}@{{version}} --save`
|
||||
|
||||
- Set the version of the current project
|
||||
|
||||
`npm version {{1.2.3}}`
|
||||
|
||||
- Publish the current project
|
||||
|
||||
`npm publish`
|
Loading…
Add table
Reference in a new issue