liang
liang
``` async function main(){ const resp = await fetch("http://localhost:8081", { method: "GET", }); console.log(resp.statusText) } await main() ``` fetch() always returns `503 Service Unavailable` when target host is `localhost `
main.ts ``` import { createRequire } from "node:module"; const require = createRequire(import.meta.url); const { PrismaClient } = require("@prisma/client"); const prisma = new PrismaClient() ``` deno.json ``` { "tasks": { "dev":...
if i use esm import , ``` import { PrismaClient } from "@prisma/client" const prisma = new PrismaClient() ``` an error happed: ``` error: Uncaught SyntaxError: The requested module '@prisma/client'...
``` DEBUG RS - deno_config::deno_json:781 - Config file found at 'H:\hlbcg\repo\hello-prisma-2\deno.json' DEBUG RS - deno_config::workspace::discovery:263 - package.json file found at 'H:\hlbcg\repo\hello-prisma-2\package.json' DEBUG RS - deno::args:915 - Finished config loading. DEBUG...
yes, I have a `.npmrc` file in home directory ``` registry=https://registry.npmjs.org/ ``` There are multiple places to configure the npm registry. Can you tell me about your processing logic? @dsherret