Last active
September 27, 2015 00:07
-
-
Save baalexander/1180049 to your computer and use it in GitHub Desktop.
Useful commands for NPM
This file contains 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
# Test a package locally before publishing to NPM: | |
# Install the package in the global space | |
npm install . -g | |
# Package should show up in list | |
npm ls -g | |
# Can view contents of the installed package with | |
ls ~/.npm/<package name> | |
# Publish a package to NPM | |
# Inside the root directory of the package | |
npm publish |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment