Duolith docs

Errors E0500 to E0599

E0538 Packages could not be scanned

Message The project's packages could not be scanned: problem

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

duolith add scans the project's packages after installing one. When the scan fails, such as when the install left package.json unreadable, the package is taken out again and the project put back as it was, since nothing about it is known.

How to fix it

Fix what the message says (most often package.json is not valid JSON), run duolith scan to check, then add the package again.

In a terminal

duolith explain E0538