I am getting an error saying the following
Yes
(Write your steps here:)
I thought it would install Docusaurus
The installation process informed me as following:
Website folder created!
Installing latest version of Docusaurus in website.
yarn add v1.22.4
warning package.json: No license field
info No lockfile found.
warning No license field
[1/4] Resolving packages...
error An unexpected error occurred: "https://registry.yarnpkg.com/docusaurus: unable to get local issuer certificate".
info If you think this is a bug, please open a bug report with the information provided in "/home/albert/Documents/website/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
Docusaurus installed in website folder!
yarn run v1.22.4
warning package.json: No license field
$ docusaurus-examples
/bin/sh: 1: docusaurus-examples: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Virtual machine with Linux Ubuntu
Corporate Firewall
This is not a Docusaurus bug, however, this issue seems to be easily resolved.
https://stackoverflow.com/questions/40124008/error-unable-to-get-local-issuer-certificate-while-running-yarn-command
https://github.com/yarnpkg/yarn/issues/841
How do I update a package.json that isn't there? It is happening upon executing docusaurus-init
As I understand it, you cannot install packages due to SSL restrictions, so you have not docusaurus-examples command.
I therefore provided links where you need to run the command like the one below to install all the required packages:
yarn config set "strict-ssl" false
Doesn't this fix the issue?
Again, there is no package.json.
to clarify:
I want to install docusaurus as a standalone docs tool.