denoland / deno

A modern runtime for JavaScript and TypeScript.

Home Page:https://deno.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error running task when `nodeModulesDir` is set to `true` but the `node_modules` directory is absent

0f-0b opened this issue · comments

commented
$ echo '{ "nodeModulesDir": true, "tasks": { "repro": "true" } }' >deno.json
$ deno cache npm:react@18.3.1
$ rm -r node_modules
$ deno task repro
error: No such file or directory (os error 2)
$ deno --version
deno 1.43.5+c703ddd (canary, aarch64-apple-darwin)
v8 12.4.254.13
typescript 5.4.5