Skip to content

Commit

Permalink
Warn about ERR_MODULE_NOT_FOUND
Browse files Browse the repository at this point in the history
Minsung found this problem, which is mostly just an unfortunate issue with NPX, and I agree it's worth flagging the problem.
  • Loading branch information
robsimmons authored Feb 5, 2025
1 parent 6850696 commit 6783dde
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ if given no other arguments will return a single solution in JSON format.
npx dusa examples/mutual-exclusion.dusa
```

> **Potential gotcha:** if you literally download this repository and try to
> run this command, you'll get an error ERR_MODULE_NOT_FOUND, because `npx` is
> trying to run your local version of dusa instead of downloading it from the
> NPM registry. You can solve this either by deleting `package.json` (so `npx`
> doesn't get confused) or by running `npm i && npm run lib` (which builds the
> module that previously wasn't found).
The `-n` flag controls the number of solutions returned. This command will
return 2 solutions:

Expand Down

0 comments on commit 6783dde

Please sign in to comment.