bynk.requires.unapproved
Error A reached adapter of a git or registry dependency requires an npm package, at a range, that the project hasn't approved in bynk.lock; review it and run bynk approve <package>.
An adapter in a git or registry dependency requires an npm package your project hasn't approved. A dependency's adapters bring their npm packages into your build's package.json, and the next npm install runs whatever those packages run; so an npm package from someone else's code enters only after you approve it once. The approval is one package at one range, recorded in bynk.lock (approved = true), so a changed range asks again. Review the package (the note names the dependencies that brought it in), run bynk approve jose, and commit bynk.lock. Your own adapters and path dependencies need no approval.
Example
# bynk.lock, as a fetch wrote it — the build fails until approved[[npm]]package = "jose"range = "^5.2.0"required-by = ["acme/money:tokens"]
# after `bynk approve jose` — the build passes[[npm]]package = "jose"range = "^5.2.0"required-by = ["acme/money:tokens"]approved = trueIn the Book
- Share code between projects › Approve a dependency’s npm packages
- Adapters
- Wrap a library as an adapter
See also
- The grammar rule it governs:
binding_decl. - Every code in its category, npm requirements, on the diagnostic index.
bynk explain bynk.requires.unapprovedshows the same from the installed toolchain, without a network.