Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory (os error 2) #162

Open
slim-hmidi opened this issue Apr 29, 2022 · 0 comments
Open

No such file or directory (os error 2) #162

slim-hmidi opened this issue Apr 29, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@slim-hmidi
Copy link

slim-hmidi commented Apr 29, 2022

Describe the bug
I run denon start and I got this error:

Uncaught (in promise) NotFound: No such file or directory (os error 2)
    return Deno.run(options);
                ^
    at Object.opSync (deno:core/01_core.js:142:12)
    at opRun (deno:runtime/js/40_process.js:27:17)
    at Object.run (deno:runtime/js/40_process.js:114:17)
    at Runner.execute (https://raw.githubusercontent.com/denosaurs/denon/main/src/runner.ts:169:17)
    at Object.exe (https://raw.githubusercontent.com/denosaurs/denon/main/src/runner.ts:45:21)
    at Daemon.start (https://raw.githubusercontent.com/denosaurs/denon/main/src/daemon.ts:66:31)
    at Daemon.iterate (https://raw.githubusercontent.com/denosaurs/denon/main/src/daemon.ts:169:32)
    at iterate.next (<anonymous>)
    at https://raw.githubusercontent.com/denosaurs/denon/main/denon.ts:167:20
   

To Reproduce Steps to reproduce the behavior:

  1. Install deno v1.16.4
  2. Add the file scripts.config.ts:
export { config as env } from "https://deno.land/x/dotenv/mod.ts";
const config = {
  scripts: {
    // same as json configuration
    start: {
      cmd: "deno run --unstable server.ts",
      tsconfig: "tsconfig.json",
      allow: ["env", "read", "net"],
      env: env({ safe: true }),
    },
  },
};

export default config;
  1. Start the server using denon start

Expected behavior
The server should be executed successfully.

Setup

  • OS: macOs
  • Deno version: 1.16.4
  • Denon version: 2.5.0
@slim-hmidi slim-hmidi added the bug Something isn't working label Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant