The npm-init documentation says npm init <package-spec>
is the same as npx <package-spec>
:
npm init <package-spec> (same as `npx <package-spec>)
Is that correct? (Ignore the documentation's missing backtick typo.)
If it is correct, why aren't the following two commands equivalent?
npm init docusaurus # works as expected
npx docusaurus # error: could not determine executable to run