地址:https://github.com/gengchen528/wechatBot
wechatBot-master.zip
前提是安装node.js
F:\78_wechatbot>node ./index.jsinternal/modules/cjs/loader.js:775throw err;^Error: Cannot find module 'wechaty'Require stack:- F:\78_wechatbot\index.js[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:772:15)[39m[90m at Function.Module._load (internal/modules/cjs/loader.js:677:27)[39m[90m at Module.require (internal/modules/cjs/loader.js:830:19)[39m[90m at require (internal/modules/cjs/helpers.js:68:18)[39mat Object.<anonymous> (F:\78_wechatbot\index.js:5:33)[90m at Module._compile (internal/modules/cjs/loader.js:936:30)[39m[90m at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)[39m[90m at Module.load (internal/modules/cjs/loader.js:790:32)[39m[90m at Function.Module._load (internal/modules/cjs/loader.js:703:12)[39m[90m at Function.Module.runMain (internal/modules/cjs/loader.js:999:10)[39m {code: [32m'MODULE_NOT_FOUND'[39m,requireStack: [ [32m'F:\\78_wechatbot\\index.js'[39m ]}F:\78_wechatbot>npm installnpm WARN deprecated raven@2.6.4: Please consider upgrading to @sentry/nodenpm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142npm 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.npm WARN deprecated har-validator@5.1.5: this> grpc@1.24.3 install F:\78_wechatbot\node_modules\grpc> node-pre-gyp install --fallback-to-build --library=static_librarynode-pre-gyp WARN Using request for node-pre-gyp https download[grpc] Success: "F:\78_wechatbot\node_modules\grpc\src\node\extension_binary\node-v72-win32-x64-unknown\grpc_node.node" is installed via remote> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\bmp\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:> https://opencollective.com/core-js> https://www.patreon.com/zloirockAlso, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\core\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\custom\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\gif\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\jpeg\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-blit\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-blur\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-circle\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-color\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-contain\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-cover\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-crop\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-displace\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-dither\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-fisheye\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-flip\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-gaussian\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-invert\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-mask\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-normalize\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-print\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-resize\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-rotate\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-scale\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-shadow\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugin-threshold\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\plugins\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\png\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\tiff\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\types\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\@jimp\utils\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@2.6.11 postinstall F:\78_wechatbot\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> core-js@3.6.5 postinstall F:\78_wechatbot\node_modules\jimp\node_modules\core-js> node -e "try{require('./postinstall')}catch(e){}"> wechaty@0.32.5 postinstall F:\78_wechatbot\node_modules\wechaty> opencollective-postinstallThank you for using wechaty!If you rely on this package, please consider supporting our open collective:> https://opencollective.com/wechaty/donatenpm 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.npm WARN ws@7.3.1 requires a peer of bufferutil@^4.0.1 but none is installed. You must install peer dependencies yourself.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.npm WARN wechatbot@0.1.1 No repository field.added 458 packages from 362 contributors in 75.257sF:\78_wechatbot>node ./index.js11:05:31 INFO Wechaty <wechaty-puppet-puppeteer>(WechatEveryDay) start() v0.32.5 is starting...11:05:31 INFO PuppetManager install(wechaty-puppet-puppeteer@^0.19.5) please wait ...11:05:31 INFO PuppetManager preInstallPuppeteer() set PUPPETEER_DOWNLOAD_HOST=https://npm.taobao.org/mirrors/npm: npmnpm: WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142npm: npmnpm: WARN deprecated har-validator@5.1.5: this library is no longer supportednpm:> puppeteer@2.1.1 install F:\78_wechatbot\node_modules\wechaty\node_modules\puppeteer> node install.jsnpm:npm: Chromium downloaded to F:\78_wechatbot\node_modules\wechaty\node_modules\puppeteer\.local-chromium\win64-722234npm: npm WARNnpm: + wechaty-puppet-puppeteer@0.19.5added 133 packages from 165 contributors and audited 11 packages in 81.785snpm: 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.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.npm: found 0 vulnerabilities11:06:54 INFO PuppetManager install(wechaty-puppet-puppeteer@^0.19.5) done开始登陆微信https://api.qrserver.com/v1/create-qr-code/?data=https%3A%2F%2Flogin.weixin.qq.com%2Fl%2FIekpQDu8jQ%3D%3Dhttps://api.qrserver.com/v1/create-qr-code/?data=https%3A%2F%2Flogin.weixin.qq.com%2Fl%2FIekpQDu8jQ%3D%3D
