Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'docusaurus-start' is not recognized as an internal or external command

When I type in yarn start in myproject.github.io/websites I get this error:

yarn run v1.22.11
warning package.json: No license field
$ docusaurus-start
'docusaurus-start' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

When I do yarn global list I get this:

yarn global v1.22.11
warning package.json: No license field
info "[email protected]" has binaries:
   - docusaurus-init
Done in 0.10s.

So Docusarus does appear to me to be installed but I just can't do anything with it. Any ideas?

like image 661
neubert Avatar asked Oct 21 '25 19:10

neubert


1 Answers

Doing yarn add docusaurus --dev instead of yarn global add docusaurus-init (which is what https://v1.docusaurus.io/docs/en/tutorial-setup suggests) did the trick.

Maybe yarn global add docusaurus --dev would have been better but alas that is not what I tried.

like image 112
neubert Avatar answered Oct 26 '25 05:10

neubert