Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to get local issuer certificate #2517

Closed
dninet opened this issue Apr 3, 2020 · 4 comments
Closed

unable to get local issuer certificate #2517

dninet opened this issue Apr 3, 2020 · 4 comments
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers

Comments

@dninet
Copy link

dninet commented Apr 3, 2020

🐛 Bug Report

I am getting an error saying the following

Have you read the Contributing Guidelines on issues?

Yes

To Reproduce

(Write your steps here:)

  1. Have a virtual machine on a windows stationary behind a corporate firewall
  2. Attempt to install docusaurus
  3. Fail at it, miserably

Expected behavior

I thought it would install Docusaurus

Actual Behavior

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.

Your Environment

Virtual machine with Linux Ubuntu
Corporate Firewall

@dninet dninet added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Apr 3, 2020
@lex111
Copy link
Contributor

lex111 commented Apr 3, 2020

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
yarnpkg/yarn#841

@lex111 lex111 closed this as completed Apr 3, 2020
@dninet
Copy link
Author

dninet commented Apr 3, 2020

How do I update a package.json that isn't there? It is happening upon executing docusaurus-init

@lex111
Copy link
Contributor

lex111 commented Apr 3, 2020

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?

@dninet
Copy link
Author

dninet commented Apr 3, 2020

Again, there is no package.json.

to clarify:
I want to install docusaurus as a standalone docs tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers
Projects
None yet
Development

No branches or pull requests

2 participants