wcygan
wcygan2mo ago

Using buf.build SDKs with Deno (and Deno Fresh)

Hi there! I'd like to use buf SDKs in my Deno Fresh project, they are located here: https://buf.build/wcygan/flock/sdks The typical way to accomplish this is like so:
npm config set @buf:registry https://buf.build/gen/npm/v1/
npm install @buf/wcygan_flock.bufbuild_es@latest
npm config set @buf:registry https://buf.build/gen/npm/v1/
npm install @buf/wcygan_flock.bufbuild_es@latest
But I'm unable to replicate this using Deno .npmrc:
@buf:registry=https://buf.build/gen/npm/v1/
@buf:registry=https://buf.build/gen/npm/v1/
Then,
deno add npm:@buf/wcygan_flock.bufbuild_es@latest
error: npm:@buf/wcygan_flock.bufbuild_es was not found.
deno add npm:@buf/wcygan_flock.bufbuild_es@latest
error: npm:@buf/wcygan_flock.bufbuild_es was not found.
3 Replies
wcygan
wcyganOP2mo ago
Posted on Deno discussions as well - https://github.com/denoland/deno/discussions/27749
GitHub
How can I use deno to install Buf SDKs through NPM? · denoland deno...
TLDR TLDR; How can I replicate these commands using Deno? npm config set @buf:registry https://buf.build/gen/npm/v1/ npm install @buf/wcygan_flock.bufbuild_es@latest More information I'd like t...
wcygan
wcyganOP5w ago
GitHub
deno install not finding packages in the buf.build npm registry ·...
Version: Deno 2.1.4 deno --version deno 2.1.4 (stable, release, aarch64-apple-darwin) v8 13.0.245.12-rusty typescript 5.6.2 I am having trouble using buf.build as a registry Based on these blog pos...

Did you find this page helpful?