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

Error installing web3.js on Windows #2973

Closed
ElTotemRebelde opened this issue Jul 26, 2019 · 2 comments
Closed

Error installing web3.js on Windows #2973

ElTotemRebelde opened this issue Jul 26, 2019 · 2 comments

Comments

@ElTotemRebelde
Copy link

I get the error in the pic when i try to install web3.js on windows. Can anyone help me to fix it?

Captura_editada

@michaelsbradleyjr
Copy link
Contributor

For a workaround see: #2971 (comment).

@ElTotemRebelde
Copy link
Author

Thank you! It worked

michaelsbradleyjr added a commit to michaelsbradleyjr/web3.js that referenced this issue Jul 28, 2019
The `michaelsbradleyjr/Websocket-Node#polyfill/globalThis` branch uses a more
robust approach to resolve a browser's `window` object. It also includes all
the latest commits on the upstream's `master` branch, including fixes for the
`.git/` subdir npm bug and Node v12.x compatibility.

The `"preinstall"` script in `packages/web3-providers-ws/package.json` is
removed because it's not helpful and its use of `rm` causes Windows
incompatibility. Closes web3#2973.

`packages/web3-providers-ws/src/index.js` is refactored since the `websocket`
package already does native WebSocket detection.
michaelsbradleyjr added a commit to michaelsbradleyjr/web3.js that referenced this issue Jul 28, 2019
The `michaelsbradleyjr/Websocket-Node#polyfill/globalThis` branch uses a more
robust approach to resolve a browser's `window` object. It also includes all
the latest commits on the upstream's `master` branch, including fixes for the
`.git/` subdir npm bug and Node v12.x compatibility.

The `"preinstall"` script in `packages/web3-providers-ws/package.json` is
removed because it's not helpful and its use of `rm` causes Windows
incompatibility. Closes web3#2971 and web3#2973.

`packages/web3-providers-ws/src/index.js` is refactored since the `websocket`
package already does native WebSocket detection.
@nivida nivida closed this as completed Jul 29, 2019
michaelsbradleyjr added a commit to michaelsbradleyjr/web3.js that referenced this issue Jul 29, 2019
The `michaelsbradleyjr/Websocket-Node#polyfill/globalThis` branch uses a more
robust approach to resolve a browser's `window` object. It also includes all
the latest commits on the upstream's `master` branch, including Node v12.x
compatibility and a workaround for the `.git/` subdir npm bug.

The `"preinstall"` script in `packages/web3-providers-ws/package.json` is
removed because it's not helpful and its use of `rm` causes Windows
incompatibility. Closes web3#2971 and web3#2973.

`packages/web3-providers-ws/src/index.js` is refactored since the `websocket`
package already does native WebSocket detection.
nachomazzara pushed a commit to nachomazzara/web3.js that referenced this issue Jun 4, 2020
The `michaelsbradleyjr/Websocket-Node#polyfill/globalThis` branch uses a more
robust approach to resolve a browser's `window` object. It also includes all
the latest commits on the upstream's `master` branch, including Node v12.x
compatibility and a workaround for the `.git/` subdir npm bug.

The `"preinstall"` script in `packages/web3-providers-ws/package.json` is
removed because it's not helpful and its use of `rm` causes Windows
incompatibility. Closes web3#2971 and web3#2973.

`packages/web3-providers-ws/src/index.js` is refactored since the `websocket`
package already does native WebSocket detection.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants