Duolith docs

Errors E0500 to E0599

E0536 Installed package not among the dependencies

Message package was installed but is not among the project's dependencies

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

Why

After installing, duolith add looks for the package among the dependencies the project's package.json lists. When it is not there (a ./folder whose package.json names another package, or a package manager that wrote elsewhere), it cannot be scanned, so it is taken out again.

How to fix it

Check that the folder's package.json names the package you meant, and that the project's own package.json is the one the package manager writes.

In a terminal

duolith explain E0536