`npm init && npm install --save anyLibrary` error

`npm init && npm install --save anyLibrary` fails with error:

npm ERR! TypeError: Object.keys called on non-object
npm ERR!     at Function.keys (native)
npm ERR!     at /usr/local/lib/node_modules/npm/lib/build.js:111:18

This is because `npm init` does not add a `dependencies` property in package.json by default.

Line 111 of build.js is:
```
      if (Object.keys(topPkg.dependencies).indexOf(currentPkg) === -1) {
```