-
-
Save aseredenko/39c5b5f459232174938f588c4f47cb71 to your computer and use it in GitHub Desktop.
NPM basic commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // NOTE: Use sudo for MAC | |
| // Install module locally | |
| npm install package-name | |
| // Inastall module globally | |
| npm install -g package-name | |
| // Add module to dependencies in package.json | |
| npm install --save package-name | |
| // Install dependencies | |
| npm install | |
| // Create package.json file | |
| npm init | |
| // List of packages | |
| npm list | |
| npm -g list |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment