If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
Then create a package.json
and publish it:
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 ./
More Info:
- http://npmjs.org/doc/json.html
- http://npmjs.org/doc/developers.html
- http://blog.izs.me/post/1675072029/10-cool-things-you-probably-didnt-realize-npm-could-do
Appendix:
If you haven't already installed npm, or you'd like the latest version:
OS X
curl http://npmjs.org/install.sh | sh
Linux
curl http://npmjs.org/install.sh | sudo sh