Here is my command:
npx regex-replace "Response ([(\w)]+)>" "Response$1>" index.ts --filecontents
Result:
ERROR: Path (--filecontents) does not exist.
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
[UnhandledPromiseRejection: 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(). The promise rejected with the reason "ERROR: Path (--filecontents) does not exist.".] {
code: 'ERR_UNHANDLED_REJECTION'
}
I'm using Command Prompt on Windows 10. What's the problem with my command and arguments?
Here is my command:
Result:
ERROR: Path (--filecontents) does not exist. node:internal/process/promises:279 triggerUncaughtException(err, true /* fromPromise */); ^ [UnhandledPromiseRejection: 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(). The promise rejected with the reason "ERROR: Path (--filecontents) does not exist.".] { code: 'ERR_UNHANDLED_REJECTION' }I'm using Command Prompt on Windows 10. What's the problem with my command and arguments?