Skip to content

Commit 0a4c0f0

Browse files
committed
Create npm.md
1 parent ec617bd commit 0a4c0f0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

common/npm.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# npm
2+
3+
> Node package manager, to manage Node.js projects and install module dependencies.
4+
5+
- Create a new project in the current folder
6+
7+
`npm init`
8+
9+
- Download all dependencies referenced in package.json
10+
11+
`npm install`
12+
13+
- Download a given dependency, and add it to the package.json
14+
15+
`npm install {{module_name}}@{{version}} --save`
16+
17+
- Set the version of the current project
18+
19+
`npm version {{1.2.3}}`
20+
21+
- Publish the current project
22+
23+
`npm publish`

0 commit comments

Comments
 (0)