npx で command not found になるとき

適当な Nuxt.js のプロジェクトを作ろうとしたら何故か command not found に。 キャッシュを消すことで解消した。

$ npx create-nuxt-app hello
sh: create-nuxt-app: command not found

$ which npx
/opt/homebrew/bin/npx

$ npx -v
9.4.0

$ npx clear-npx-cache
Need to install the following packages:
  clear-npx-cache@1.0.1
Ok to proceed? (y) y

$ npx create-nuxt-app hello
Need to install the following packages:
  create-nuxt-app@5.0.0
Ok to proceed? (y)