Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?) #1080

Closed
ErrorEater opened this issue Aug 26, 2021 · 8 comments · Fixed by #1414
Closed

bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?) #1080

ErrorEater opened this issue Aug 26, 2021 · 8 comments · Fixed by #1414
Assignees
Labels
Milestone

Comments

@ErrorEater
Copy link

C:\Projects>ganache
bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)
ganache v7.0.0-alpha.0 (@ganache/cli: 0.1.1-alpha.0, @ganache/core: 0.1.1-alpha.0)
Starting RPC server

How to fix this bigint error?

@davidmurdoch
Copy link
Member

Thanks for trying out the ganache alpha! What node version are you using?

@davidmurdoch davidmurdoch added this to the 7.0.0 milestone Aug 26, 2021
@ErrorEater
Copy link
Author

Thanks for trying out the ganache alpha! What node version are you using?

v14.15.5

@davidmurdoch
Copy link
Member

Ok, thanks. This happens because one of our dependencies (bigint-buffer) runs a compilation step on installation and this can step may fail for a couple of reasons. One of the reasons is that your system might not have the build-tools the library is looking for. You can install these build tools on Windows (see https://www.npmjs.com/package/windows-build-tools), but you don't actually need to as it automatically alls back to a pure JS solution instead. Though I agree... that warning is very annoying.

I don't want users to see this warning or to have to install build tools. I've put this Issue on our list of TODOs for our 7.0.0 stable release; we'll likely fork the bigint-buffer library and pre-build this native binary for all supported systems (Node.js v10-16 on Linux, Windows, and Mac).

@MicaiahReid
Copy link
Contributor

@Passionist59 what version of node and Ganache are you running? And on what OS?

@smacrineanu
Copy link

I 'm using 18.2.0 version of node And I don't use Ganache, I 'm using web3.js

Same here, this warning is kind of annoying, I am using Ubuntu 20.04 in WSL.

@davidmurdoch
Copy link
Member

@Passionist59, @smacrineanu This isn't the web3.js repository.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants
@davidmurdoch @ErrorEater @smacrineanu @MicaiahReid and others