先要在github注册账号,同时创建仓库
$ npm init
This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sane defaults.
See `npm help json` for definitive documentation on these fields
and exactly what they do.
Use `npm install <pkg> --save` afterwards to install a package and
save it as a dependency in the package.json file.
Press ^C at any time to quit.
name: (node) demo1
version: (0.0.0) 0.1.0
description: easy test
entry point: (index.js)
test command: make test
git repository: https://github.com/YoungTsuiMing/demo1.git
keywords: easy test
author: Jacky Young
license: (BSD-2-Clause) MIT