Skip to content

Instantly share code, notes, and snippets.

@MichaelMartinez
Created March 20, 2012 00:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MichaelMartinez/2129086 to your computer and use it in GitHub Desktop.
Save MichaelMartinez/2129086 to your computer and use it in GitHub Desktop.
NPM init
npm init creates a package json for you
npm install --save adds that module + version to the package.json
first init, then install --save
if you want to use the one that youv'e already installed globally, and you are not on windows, you can do `npm link modulename`
`npm ls --global`
any npm command can be done in global mode with -g|--global
can you remove the link if you no longer want it?
yeah. npm rm modulename
just like uninstalling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment