Skip to content

Could Not Detect Network on deploy.js - WSL & Ganache #34

Answered by LetsBuildAndCreate
Equious asked this question in Q&A
Discussion options

You must be logged in to vote

This is what worked for me 👍

OPTION 1: If you want to install & run Ganache on your WSL itself👇

  1. Install Ganache on WSL
    yarn add ganache

  2. Run Ganache
    yarn run ganache

  3. Copy the RPC URL (127.0.0.1:8545) from the bottom of the terminal screen that says RPC listening on 127.0.0.1:8545
    & paste it in the ethers.js JsonRpcProvider( ) function parameter.

  4. Also copy any Private key on scrolling up the Terminal Screen & paste it in the ethers.js Wallet( ) function parameter.

  5. Now let this terminal run in the background, since we want our Ganache server to be running.
    So open a new terminal & run the deploy.js file by running the below command:
    node deploy.js

OPTION 2: If you want to run Ga…

Replies: 14 comments 112 replies

Comment options

You must be logged in to vote
1 reply
@Equious
Comment options

Comment options

You must be logged in to vote
47 replies
@ashwincs12
Comment options

@wodeche
Comment options

@OceanHL
Comment options

@FreezingM
Comment options

@w3zank
Comment options

Comment options

You must be logged in to vote
6 replies
@vish9812
Comment options

@Ayush10
Comment options

@Mohammad699
Comment options

@drpc0101
Comment options

@drpc0101
Comment options

Comment options

You must be logged in to vote
5 replies
@a14i12
Comment options

@mariusdique
Comment options

@yatinkhandelwal
Comment options

@ashrth
Comment options

@daniyaniazi
Comment options

Comment options

You must be logged in to vote
2 replies
@PatrickAlphaC
Comment options

@Codeinor
Comment options

Comment options

You must be logged in to vote
1 reply
@MrAbuz
Comment options

Comment options

You must be logged in to vote
1 reply
@azhen1311
Comment options

Comment options

You must be logged in to vote
4 replies
@hrushigawade4
Comment options

@shivnix
Comment options

@uditrajawat
Comment options

@BT5ZH
Comment options

Comment options

You must be logged in to vote
8 replies
@Fushiguro19
Comment options

@ADK0010
Comment options

@ghost
Comment options

@NakeshTewari
Comment options

@shawakash
Comment options

Comment options

You must be logged in to vote
36 replies
@Renzo1
Comment options

@ZamoRzgar
Comment options

@shivamani-yamana
Comment options

@sakshammishra112
Comment options

@PatrickAlphaC
Comment options

Answer selected by PatrickAlphaC
Comment options

You must be logged in to vote
1 reply
@Rwendo-snowden
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet