'docusaurus-start' 未被识别为内部或外部命令
'docusaurus-start' is not recognized as an internal or external command
当我在 myproject.github.io/websites
中输入 yarn start
时,出现此错误:
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.
当我这样做时 yarn global list
我得到这个:
yarn global v1.22.11
warning package.json: No license field
info "docusaurus-init@1.14.7" has binaries:
- docusaurus-init
Done in 0.10s.
所以 Docusarus 在我看来确实已安装,但我无法对其进行任何操作。有什么想法吗?
用 yarn add docusaurus --dev
而不是 yarn global add docusaurus-init
(https://v1.docusaurus.io/docs/en/tutorial-setup 建议的)就成功了。
也许 yarn global add docusaurus --dev
会更好,但可惜那不是我尝试过的。
当我在 myproject.github.io/websites
中输入 yarn start
时,出现此错误:
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.
当我这样做时 yarn global list
我得到这个:
yarn global v1.22.11
warning package.json: No license field
info "docusaurus-init@1.14.7" has binaries:
- docusaurus-init
Done in 0.10s.
所以 Docusarus 在我看来确实已安装,但我无法对其进行任何操作。有什么想法吗?
用 yarn add docusaurus --dev
而不是 yarn global add docusaurus-init
(https://v1.docusaurus.io/docs/en/tutorial-setup 建议的)就成功了。
也许 yarn global add docusaurus --dev
会更好,但可惜那不是我尝试过的。