node:internal/url:560
throw new ERR_INVALID_URL(input);
^
TypeError [ERR_INVALID_URL]: Invalid URL
at new NodeError (node:internal/errors:399:5)
at new URL (node:internal/url:560:13)
at linkCheck (/Users/xxx/demo/node_modules/link-check/index.js:21:47)
at /Users/xxx/demo/node_modules/markdown-link-check/index.js:119:9
at /Users/xxx/demo/node_modules/async/dist/async.js:246:13
at replenish (/Users/xxx/demo/node_modules/async/dist/async.js:446:21)
at /Users/xxx/demo/node_modules/async/dist/async.js:451:13
at _asyncMap (/Users/xxx/demo/node_modules/async/dist/async.js:244:16)
at Object.mapLimit (/Users/xxx/demo/node_modules/async/dist/async.js:2091:16)
at Object.awaitable [as mapLimit] (/Users/xxx/demo/node_modules/async/dist/async.js:211:32) {
input: './docs/README.md',
code: 'ERR_INVALID_URL'
}
The error is trigger with the following line on link-check.
Using
markdown-link-check
through Node.js triggers an error while using through npx does not.With the following files
README.md
docs/README.md
With the npx command, it works.
With Node.js it does not works.
lint.js
The following error appears:
The error is trigger with the following line on
link-check
.