Encountering an issue with importing the stdlib files from deno.land to the local cache when running mod.ts.
Error: error sending request for url (): error trying to connect: tcp connect error: An attempt was made to access a socket in a way forbidden by its access permissions (os error 10013). Imported from "file:///C:/Current_Tasks/Deno/Kepler/mod.ts:3"
Is there something extra that needs to be configured to successfully import these files?
import { join } from "https://deno.land/std/path/mod.ts";
import { BufReader } from "https://deno.land/std/io/bufio.ts";
import { parse } from "https://deno.land/std/encoding/csv.ts";
async function loadPlanetsData() {
const path = join(".", "test.csv");
const file = await Deno.open(path);
const bufReader = new BufReader(file);
const result = await parse(bufReader, {
header: true,
comment: "#",
});
Deno.close(file.rid);
console.log(result);
}
await loadPlanetsData();
Update: Utilized deno run --allow-read mod.ts