Skip to content

Instantly share code, notes, and snippets.

@baalexander
Last active September 27, 2015 00:07
Show Gist options
  • Save baalexander/1180049 to your computer and use it in GitHub Desktop.
Save baalexander/1180049 to your computer and use it in GitHub Desktop.
Useful commands for NPM
# 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