In my case, I've encounted "next: command not found".
To resolve this error, I run:
deno install npm:next