Reason: To prevent an error from being thrown when a broken link is encountered, the javascript in markdown-link-check needed to be changed. And for the change to be retained for future use this was the solution I found.
Package-lock.json
Update content to reflect changes made to package.json (through npm install).
Changes: The version is now 3.10.4 (before 3.10.3) to reflect the changes I made in the markdown-link-check file. In the function runMarkdownLinkCheck() in the if condition which checks for broken links I changed console.error to console.warn and removed resolve(), now promise does not fail when encountering a broken link.
Package.json
Package-lock.json