地址:https://github.com/gengchen528/wechatBot
    wechatBot-master.zip
    前提是安装node.js

    1. F:\78_wechatbot>node ./index.js
    2. internal/modules/cjs/loader.js:775
    3. throw err;
    4. ^
    5. Error: Cannot find module 'wechaty'
    6. Require stack:
    7. - F:\78_wechatbot\index.js
    8.  at Function.Module._resolveFilename (internal/modules/cjs/loader.js:772:15)
    9.  at Function.Module._load (internal/modules/cjs/loader.js:677:27)
    10.  at Module.require (internal/modules/cjs/loader.js:830:19)
    11.  at require (internal/modules/cjs/helpers.js:68:18)
    12. at Object.<anonymous> (F:\78_wechatbot\index.js:5:33)
    13.  at Module._compile (internal/modules/cjs/loader.js:936:30)
    14.  at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
    15.  at Module.load (internal/modules/cjs/loader.js:790:32)
    16.  at Function.Module._load (internal/modules/cjs/loader.js:703:12)
    17.  at Function.Module.runMain (internal/modules/cjs/loader.js:999:10) {
    18. code: 'MODULE_NOT_FOUND',
    19. requireStack: [ 'F:\\78_wechatbot\\index.js' ]
    20. }
    21. F:\78_wechatbot>npm install
    22. npm WARN deprecated raven@2.6.4: Please consider upgrading to @sentry/node
    23. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    24. npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
    25. npm WARN deprecated har-validator@5.1.5: this
    26. > grpc@1.24.3 install F:\78_wechatbot\node_modules\grpc
    27. > node-pre-gyp install --fallback-to-build --library=static_library
    28. node-pre-gyp WARN Using request for node-pre-gyp https download
    29. [grpc] Success: "F:\78_wechatbot\node_modules\grpc\src\node\extension_binary\node-v72-win32-x64-unknown\grpc_node.node" is installed via remote
    30. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\bmp\node_modules\core-js
    31. > node -e "try{require('./postinstall')}catch(e){}"
    32. Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
    33. The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
    34. > https://opencollective.com/core-js
    35. > https://www.patreon.com/zloirock
    36. Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
    37. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\core\node_modules\core-js
    38. > node -e "try{require('./postinstall')}catch(e){}"
    39. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\custom\node_modules\core-js
    40. > node -e "try{require('./postinstall')}catch(e){}"
    41. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\gif\node_modules\core-js
    42. > node -e "try{require('./postinstall')}catch(e){}"
    43. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\jpeg\node_modules\core-js
    44. > node -e "try{require('./postinstall')}catch(e){}"
    45. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-blit\node_modules\core-js
    46. > node -e "try{require('./postinstall')}catch(e){}"
    47. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-blur\node_modules\core-js
    48. > node -e "try{require('./postinstall')}catch(e){}"
    49. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-circle\node_modules\core-js
    50. > node -e "try{require('./postinstall')}catch(e){}"
    51. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-color\node_modules\core-js
    52. > node -e "try{require('./postinstall')}catch(e){}"
    53. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-contain\node_modules\core-js
    54. > node -e "try{require('./postinstall')}catch(e){}"
    55. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-cover\node_modules\core-js
    56. > node -e "try{require('./postinstall')}catch(e){}"
    57. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-crop\node_modules\core-js
    58. > node -e "try{require('./postinstall')}catch(e){}"
    59. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-displace\node_modules\core-js
    60. > node -e "try{require('./postinstall')}catch(e){}"
    61. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-dither\node_modules\core-js
    62. > node -e "try{require('./postinstall')}catch(e){}"
    63. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-fisheye\node_modules\core-js
    64. > node -e "try{require('./postinstall')}catch(e){}"
    65. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-flip\node_modules\core-js
    66. > node -e "try{require('./postinstall')}catch(e){}"
    67. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-gaussian\node_modules\core-js
    68. > node -e "try{require('./postinstall')}catch(e){}"
    69. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-invert\node_modules\core-js
    70. > node -e "try{require('./postinstall')}catch(e){}"
    71. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-mask\node_modules\core-js
    72. > node -e "try{require('./postinstall')}catch(e){}"
    73. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-normalize\node_modules\core-js
    74. > node -e "try{require('./postinstall')}catch(e){}"
    75. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-print\node_modules\core-js
    76. > node -e "try{require('./postinstall')}catch(e){}"
    77. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-resize\node_modules\core-js
    78. > node -e "try{require('./postinstall')}catch(e){}"
    79. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-rotate\node_modules\core-js
    80. > node -e "try{require('./postinstall')}catch(e){}"
    81. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-scale\node_modules\core-js
    82. > node -e "try{require('./postinstall')}catch(e){}"
    83. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-shadow\node_modules\core-js
    84. > node -e "try{require('./postinstall')}catch(e){}"
    85. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-threshold\node_modules\core-js
    86. > node -e "try{require('./postinstall')}catch(e){}"
    87. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugins\node_modules\core-js
    88. > node -e "try{require('./postinstall')}catch(e){}"
    89. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\png\node_modules\core-js
    90. > node -e "try{require('./postinstall')}catch(e){}"
    91. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\tiff\node_modules\core-js
    92. > node -e "try{require('./postinstall')}catch(e){}"
    93. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\types\node_modules\core-js
    94. > node -e "try{require('./postinstall')}catch(e){}"
    95. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\utils\node_modules\core-js
    96. > node -e "try{require('./postinstall')}catch(e){}"
    97. > core-js@2.6.11 postinstall F:\78_wechatbot\node_modules\core-js
    98. > node -e "try{require('./postinstall')}catch(e){}"
    99. > core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\jimp\node_modules\core-js
    100. > node -e "try{require('./postinstall')}catch(e){}"
    101. > wechaty@0.32.5 postinstall F:\78_wechatbot\node_modules\wechaty
    102. > opencollective-postinstall
    103. Thank you for using wechaty!
    104. If you rely on this package, please consider supporting our open collective:
    105. > https://opencollective.com/wechaty/donate
    106. npm WARN wechaty-puppet-hostie@0.3.36 requires a peer of wechaty-puppet@^0.21.12 but none is installed. You must install peer dependencies yourself.
    107. npm WARN ws@7.3.1 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.
    108. npm WARN ws@7.3.1 requires a peer of utf-8-validate@^5.0.2 but none is installed. You must install peer dependencies yourself.
    109. npm WARN wechatbot@0.1.1 No repository field.
    110. added 458 packages from 362 contributors in 75.257s
    111. F:\78_wechatbot>node ./index.js
    112. 11:05:31 INFO Wechaty <wechaty-puppet-puppeteer>(WechatEveryDay) start() v0.32.5 is starting...
    113. 11:05:31 INFO PuppetManager install(wechaty-puppet-puppeteer@^0.19.5) please wait ...
    114. 11:05:31 INFO PuppetManager preInstallPuppeteer() set PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors/
    115. npm: npm
    116. npm: WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
    117. npm: npm
    118. npm: WARN deprecated har-validator@5.1.5: this library is no longer supported
    119. npm:
    120. > puppeteer@2.1.1 install F:\78_wechatbot\node_modules\wechaty\node_modules\puppeteer
    121. > node install.js
    122. npm:
    123. npm: Chromium downloaded to F:\78_wechatbot\node_modules\wechaty\node_modules\puppeteer\.local-chromium\win64-722234
    124. npm: npm WARN
    125. npm: + wechaty-puppet-puppeteer@0.19.5
    126. added 133 packages from 165 contributors and audited 11 packages in 81.785s
    127. npm: wechaty-puppet-puppeteer@0.19.5 requires a peer of wechaty-puppet@^0.20.0 but none is installed. You must install peer dependencies yourself.
    128. npm WARN rx-queue@0.8.5 requires a peer of brolog@^1.4.9 but none is installed. You must install peer dependencies yourself.
    129. npm: found 0 vulnerabilities
    130. 11:06:54 INFO PuppetManager install(wechaty-puppet-puppeteer@^0.19.5) done
    131. 开始登陆微信
    132. https://api.qrserver.com/v1/create-qr-code/?data=https%3A%2F%2Flogin.weixin.qq.com%2Fl%2FIekpQDu8jQ%3D%3D
    133. https://api.qrserver.com/v1/create-qr-code/?data=https%3A%2F%2Flogin.weixin.qq.com%2Fl%2FIekpQDu8jQ%3D%3D