-
Notifications
You must be signed in to change notification settings - Fork 682
Ganache Installation issues #2918
Comments
Hi @VarunSaiTeja, could we get more information about your environment so we can attempt to reproduce this? Thank you! (Also worth noting, this issue appears to be related to #2535 and #2445.) |
I get the same error it's so annoying |
Can you try using npm 6 (the default version the ships with node 14)? |
Same error
|
What is the result of running |
|
Can you try using npm 6 (the default version the ships with node 14)? |
I don't have node 14. Is Genache only working with node 14? |
No it works with node v12-16 (v18 support is coming in the next release). Npm can be a problem; the newer versions are very buggy. You can also try reinstalling Node with Windows Build Tools checkbox enabled. |
This worked but....I'm not sure I'd call this a fix :) |
@ccornici, agreed. Thanks for surfacing this, we'll make sure to fix it! |
With the version of node 14 it works perfectly. I had the same problem with version 16 of node on MacOS. On Windows I tried and it works perfectly with version 16 of node and npm 8, you just have to install the version of python 3.9 and Visual Studio Community Edition 2019, the latter only the development tools for desktop and Node.js. |
While investigating I am noticing the following packages on Node 14+ requiring On a Windows 10 VM I can confirm without the additional windows build tools for node-gyp this is where the install bombs out. I believe some of the related issues corroborate bufferutil
keccak
leveldown
secp256k1
utf-8-validate Strangely, on node 16 & 18 I am noticing the prebuild package --> npm info run @trufflesuite/[email protected] install node_modules/ganache/node_modules/@trufflesuite/bigint-buffer node-gyp rebuild
npm info run [email protected] install node_modules/ganache/node_modules/bufferutil node-gyp rebuild
npm info run [email protected] install node_modules/ganache/node_modules/keccak node-gyp rebuild
npm info run [email protected] install node_modules/ganache/node_modules/leveldown node-gyp rebuild
npm info run [email protected] install node_modules/ganache/node_modules/secp256k1 node-gyp rebuild
npm info run [email protected] install node_modules/ganache/node_modules/utf-8-validate node-gyp rebuild
--> npm info run @trufflesuite/[email protected] install { code: 0, signal: null }
npm timing build:run:install:node_modules/ganache/node_modules/@trufflesuite/bigint-buffer Completed in 663ms
npm info run [email protected] install { code: 0, signal: null }
npm timing build:run:install:node_modules/ganache/node_modules/bufferutil Completed in 739ms
npm info run [email protected] install { code: 0, signal: null }
npm timing build:run:install:node_modules/ganache/node_modules/utf-8-validate Completed in 713ms
npm info run [email protected] install { code: 0, signal: null }
npm timing build:run:install:node_modules/ganache/node_modules/secp256k1 Completed in 4443ms
npm info run [email protected] install { code: 0, signal: null }
npm timing build:run:install:node_modules/ganache/node_modules/keccak Completed in 4754ms
npm info run [email protected] install { code: 0, signal: null }
npm timing build:run:install:node_modules/ganache/node_modules/leveldown Completed in 19185ms I am not yet familiar with prebuildify and the process but it seems straightforward. I am going to spend some time on Node 14 trying to mirror the same process with bigint-buffer for the My hunch is that we need to add additional targets for 16 & 18 and possibly add these packages to our prebuilds, which mostly likely will require a change in our prebuild process (either by adding these packages or perhaps the creation of a common package that exports the bundles? Something else? I haven't explored yet). This hunch is mostly based on node 12/14 using npm 6, node 16 using npm 7, and node 18 using npm 8. I am presuming prebuildify targeting may be suspect here. |
I was able to get this running on Windows 10 running Node 16 by rebuilding the Steps:
Expected Results:
Expected Results:
ganache : File C:\Users\lol\AppData\Roaming\npm\ganache.ps1 cannot be loaded because running scripts is disabled on this system...
ER:
ER:
ER: Ganache starts Next Steps: Call Outs: |
This should be fixed by #3208 in the next release |
npm i ganache -g
--Getting following error, please help me how to resolve this issue?
The text was updated successfully, but these errors were encountered: