NobbZ
NobbZ
DDeno
Created by NobbZ on 3/10/2024 in #help
How to use vendoring with node_modules
As trying to recreate a DENO_DIR via deno cache creates different results on different machines, I have to assume that the lockfile is not enough. So I wanted to try to vendor instead, so I set "vendor": true in my deno.jsonc and ran a single build, which creates a vendor and a node_modules folder. Even though I copied both, the vendor and node_modules to my git repository, the remote (airgapped) builder fails like this:
Download https://registry.npmjs.org/wrap-ansi
Download https://registry.npmjs.org/wrappy
Download https://registry.npmjs.org/yallist
Download https://registry.npmjs.org/yaml
Download https://registry.npmjs.org/zwitch
error: failed reading lockfile '/build/source/deno.lock'

Caused by:
Error getting response at https://registry.npmjs.org/@alloc/quick-lru for package "@alloc/quick-lru": error sending request for url (https://registry.npmjs.org/@alloc/quick-lru): error trying to connect: dns error: failed to lookup address information: Temporary failure in name resolution: error trying to connect: dns error: failed to lookup address information: Temporary failure in name resolution: dns error: failed to lookup address information: Temporary failure in name resolution: failed to lookup address information: Temporary failure in name resolution
Download https://registry.npmjs.org/wrap-ansi
Download https://registry.npmjs.org/wrappy
Download https://registry.npmjs.org/yallist
Download https://registry.npmjs.org/yaml
Download https://registry.npmjs.org/zwitch
error: failed reading lockfile '/build/source/deno.lock'

Caused by:
Error getting response at https://registry.npmjs.org/@alloc/quick-lru for package "@alloc/quick-lru": error sending request for url (https://registry.npmjs.org/@alloc/quick-lru): error trying to connect: dns error: failed to lookup address information: Temporary failure in name resolution: error trying to connect: dns error: failed to lookup address information: Temporary failure in name resolution: dns error: failed to lookup address information: Temporary failure in name resolution: failed to lookup address information: Temporary failure in name resolution
(there are much of the Download https://registry.npmjs.org/… lines, all refer to npmjs of course)
8 replies