Skip to content
This repository has been archived by the owner on Oct 24, 2021. It is now read-only.

How to solve local certificate issuer error on Windows #741

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions source/windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,21 @@ Starting from MongoDB 4.4.4 we started to use Visual Studio 2019.
Until MongoDB 4.2 [this](https://www.microsoft.com/en-us/download/confirmation.aspx?id=48145) was the usually the right version to be installed.

After installing `vc_redist.x64` you should be able to run Meteor and MongoDB server without problems.

<h2 id="unable-to-get-local-issuer-certificate">Unable to get local issuer certificate</h2>

When installing Meteor via
```shell
npm install -g meteor --force
```

you encounter
```shell
Error: unable to get local issuer certificate
```

You can overcome this by setting:

```shell
export NODE_TLS_REJECT_UNAUTHORIZED=0
```
Comment on lines +39 to +43
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This disables some of the protections https provides against security issues. There should probably be a warning here.

npm was able to successfully download the package in meteor/meteor#11415, so it should be possible to fix the installer so this isn't necessary.