发布自己的nodejs的npm包

# mkdir example
# cd example
# npm init

按提示输入信息会自动生成package.json

{ “name”: “example”, “version”: “0.0.1″, “description”: “test npm”, “main”: “index.js”, “scripts”: { “test”: “echo ”Error: no test specified” && exit 1″ }, “repository”: “”, “author”: “”, “license”: “MIT” } Read More