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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With