Package: rollup Version: 2.38.4-1 Severity: normal When running `rollup --watch`, an error occurs:
(node:8675) UnhandledPromiseRejectionWarning: Error: Cannot find module 'chokidar' Require stack: - /usr/share/nodejs/rollup/dist/shared/watch-cli.js - /usr/share/nodejs/rollup/dist/bin/rollup at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15) at Function.Module._load (internal/modules/cjs/loader.js:667:27) at Module.require (internal/modules/cjs/loader.js:887:19) at require (internal/modules/cjs/helpers.js:74:18) at Object.<anonymous> (/usr/share/nodejs/rollup/dist/shared/watch- cli.js:42:18) at Module._compile (internal/modules/cjs/loader.js:999:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10) at Module.load (internal/modules/cjs/loader.js:863:32) at Function.Module._load (internal/modules/cjs/loader.js:708:14) at Module.require (internal/modules/cjs/loader.js:887:19) (node:8675) 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:8675) [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. The error can be fixed by running `sudo apt install node-chokidar`. Versions of packages rollup depends on: ii node-ansi-escapes 4.3.1-1 ii node-date-time 3.1.0-1 ii node-debbundle-acorn 8.0.5+ds+~cs19.19.27-1 ii node-hash.js 1.1.7-1 ii node-is-reference 1.2.1-3 ii node-locate-character 2.0.5+repack-2 ii node-magic-string 0.25.7-4 ii node-postcss [node-colorette] 8.2.1+~cs5.3.23-6 ii node-pretty-bytes 5.5.0-1 ii node-pretty-ms 7.0.1-1 ii node-require-relative 0.8.7-3 ii node-rollup-pluginutils 4.1.0+~2.8.2-3 ii node-signal-exit 3.0.3-1 ii node-source-map 0.7.0++dfsg2+really.0.6.1-7 ii node-sourcemap-codec 1.4.8-4 ii node-yargs-parser 18.1.3+~15.0.0-1 ii nodejs 12.21.0~dfsg-3 rollup recommends no packages. rollup suggests no packages.