Skip to content

Commit

Permalink
Create npm.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rprieto committed Mar 4, 2014
1 parent ec617bd commit 0a4c0f0
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions common/npm.md
Original file line number Diff line number Diff line change
@@ -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`

0 comments on commit 0a4c0f0

Please sign in to comment.