提交 3661d339 编写于 作者: 丸子 提交者: Huan (李卓桓)

fail to install node dependencies (#1036)

* Update README.md

before you run `mybot.js` make sure you have `package.json` along with the script,or it would fail to install dependencies

```
➜  test npm install wechaty

> puppeteer@0.13.0 install /Users/hiwanz/test/node_modules/puppeteer
> node install.js

ERROR: Failed to download Chromium r515411! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: read ETIMEDOUT
    at _errnoException (util.js:1024:11)
    at TLSWrap.onread (net.js:615:25) code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'read' }
npm WARN enoent ENOENT: no such file or directory, open '/Users/hiwanz/test/package.json'
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license field.

```

* Update README.md

before you run `mybot.js` make sure you have `package.json` along with the script,or it would fail to install dependencies

Error info:

```
➜  test npm install wechaty

> puppeteer@0.13.0 install /Users/hiwanz/test/node_modules/puppeteer
> node install.js

ERROR: Failed to download Chromium r515411! Set "PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" env variable to skip download.
{ Error: read ETIMEDOUT
    at _errnoException (util.js:1024:11)
    at TLSWrap.onread (net.js:615:25) code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'read' }
npm WARN enoent ENOENT: no such file or directory, open '/Users/hiwanz/test/package.json'
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license field.

```
上级 a7df2b2e
......@@ -105,6 +105,7 @@ $ docker run -ti --rm --volume="$(pwd)":/bot zixia/wechaty mybot.ts # for TypeSc
[![Greenkeeper badge](https://badges.greenkeeper.io/Chatie/wechaty.svg)](https://greenkeeper.io/)
```shell
$ npm init
$ npm install wechaty
$ cat > mybot.js <<'_EOF_'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册