Skip to content

Instantly share code, notes, and snippets.

@manuelvanrijn
Created October 2, 2012 13:28
Show Gist options
  • Save manuelvanrijn/3819139 to your computer and use it in GitHub Desktop.
Save manuelvanrijn/3819139 to your computer and use it in GitHub Desktop.
Howto publish your module to npm

Howto publish your module to npm

npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"

npm adduser
// or npm login

cd /path/to/your-project
npm init

npm install -g pakmanager
# this shows you dependencies as you `require`d them
pakmanager deps
# now edit `package.json` and add any deps you forgot about

npm publish ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment