E0534 Package manager failed
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 installs a package with the project's own package manager: pnpm or yarn when its lockfile is there, else npm (or the program DUOLITH_NPM names). That program could not be run, or it failed, so nothing was added. The project's package.json, lockfile and node_modules are put back as they were.
How to fix it
Read the package manager's own message above, fix what it says (the name, the version, the network), and run duolith add again.
In a terminal
duolith explain E0534