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

Update troubleshooting.md #89

Open
wants to merge 1 commit into
base: main
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
16 changes: 15 additions & 1 deletion docs/guides/troubleshooting.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
`---
title: &title Troubleshooting
description: &description This page offers troubleshooting tips for WebContainers.
head:
Expand Down Expand Up @@ -112,3 +112,17 @@ Currently, WebContainers can only execute languages that are natively supported
> `Cannot load native addon because loading addons is disabled`.

The solution to this is to use an alternative to the native addon which is either fully implemented in JavaScript or can be compiled to WebAssembly.

## `Protocol "https:" not supported. Expected "http:"` npm error

In some environments it may be helpful to explicitly set an `.npmrc` with the registry specifed to overcome this.

An example in your `files,js` add this with <strong>http://</strong>

```js
".npmrc": {
file: {
contents: `registry=http://registry.npmjs.org`
}
},
```