|
大神,请问运行时出现这个是哪里没有安装好吗?
(node:29329) UnhandledPromiseRejectionWarning: Error: Cannot find module 'tough-cookie'
Require stack:
- /ql/scripts/Annyoo2021_scripts_jd_shop.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:889:15)
at Function.Module._load (internal/modules/cjs/loader.js:745:27)
at Module.require (internal/modules/cjs/loader.js:961:19)
at require (internal/modules/cjs/helpers.js:92:18)
at Object.initGotEnv (/ql/scripts/Annyoo2021_scripts_jd_shop.js:219:3796)
at Object.post (/ql/scripts/Annyoo2021_scripts_jd_shop.js:219:5658)
at /ql/scripts/Annyoo2021_scripts_jd_shop.js:178:7
at new Promise (<anonymous>)
at TotalBean (/ql/scripts/Annyoo2021_scripts_jd_shop.js:164:10)
at /ql/scripts/Annyoo2021_scripts_jd_shop.js:48:13
(Use `node --trace-warnings ...` to show where the warning was created)
(node:29329) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:29329) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
|
|