初始化 添加 #!/usr/bin/env node // in package.json { ... "bin": { "cli": "index.js" } } npm link package commander.js 发布