<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="deno run --allow-read --allow-env --allow-write npm:prisma@^4.5 init"><pre class="notranslate">deno run --allow-read --allow-env --allow-write npm:prisma@^4.5 init</pre></div>
<p dir="auto"><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji>Granted sys access to "uid".</p>
<blockquote>
<p dir="auto">Downloading Prisma engines for Node-API for darwin-arm64 [          ] 0%┌ <g-emoji class="g-emoji" alias="warning" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/26a0.png">⚠️</g-emoji>  Deno<br>
✅ Granted net access to "binaries.prisma.sh".<br>
Downloading Prisma engines for Node-API for darwin-arm64 [======== ] 84%error: Uncaught (in promise) TypeError: context.digest is not a function<br>
at Hash.flush [as _flush] (ext:deno_node/internal/crypto/hash.ts:47:35)<br>
at Hash.Ot [as _final] (ext:deno_node/_stream.mjs:11:59823)<br>
at Fa (ext:deno_node/_stream.mjs:11:51130)<br>
at Ua (ext:deno_node/_stream.mjs:11:51274)<br>
at mt (ext:deno_node/_stream.mjs:11:51350)<br>
at Hash.S.end (ext:deno_node/_stream.mjs:11:50523)<br>
at Gunzip.u (ext:deno_node/_stream.mjs:11:36397)<br>
at Object.onceWrapper (ext:deno_node/_events.mjs:502:28)<br>
at Gunzip.emit (ext:deno_node/_events.mjs:391:35)<br>
at Ea (ext:deno_node/_stream.mjs:11:43461)</p>
</blockquote>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno 1.32.5 (release, aarch64-apple-darwin)
v8 11.2.214.9
typescript 5.0.3"><pre class="notranslate"><code class="notranslate">deno 1.32.5 (release, aarch64-apple-darwin)
v8 11.2.214.9
typescript 5.0.3
</code></pre></div>
<p dir="auto">I am following this <a href="https://www.prisma.io/docs/guides/deployment/deployment-guides/deploying-to-deno-deploy" rel="nofollow">document</a>.</p>
<p dir="auto">I'm running this command:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deno run -A --unstable npm:prisma init"><pre class="notranslate"><code class="notranslate">deno run -A --unstable npm:prisma init
</code></pre></div>
<p dir="auto">And receiving this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Downloading Prisma engines for Node-API for darwin-arm64 [...] error: Uncaught (in promise) TypeError: context.digest is not a function"><pre class="notranslate"><code class="notranslate">Downloading Prisma engines for Node-API for darwin-arm64 [...] error: Uncaught (in promise) TypeError: context.digest is not a function
</code></pre></div>
<p dir="auto">If I try to run prisma init outside of deno:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npx prisma init"><pre class="notranslate"><code class="notranslate">npx prisma init
</code></pre></div>
<p dir="auto">It succeeds just fine:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12075916/233418148-766af0e8-41e7-473e-ac9e-e70740da23d3.png"><img src="https://user-images.githubusercontent.com/12075916/233418148-766af0e8-41e7-473e-ac9e-e70740da23d3.png" alt="Screenshot 2023-04-20 at 11 41 22" style="max-width: 100%;"></a></p>
<p dir="auto">I'm not sure if this is a <code class="notranslate">deno</code> issue, or a <code class="notranslate">prisma</code> issue, however I am able to get this working outside of <code class="notranslate">deno</code>.</p>