emclab
1
I am trying to run this pnet-ipfs example on my win10 with node 12.14.1. What I did was:
- create a nodejs project with
npm init
- copy the dependency from the example’s
package.json
- `npm install’
- Copy and generate files:
utils.js, libp2p-bundle.js, index.js
in project directory
- In terminal, run `node index.js
Nothing happened after node index.js
. What is the right way to run the example?
Here is the package.json
created:
"dependencies": { "ipfs": "^0.40.0", "libp2p": "^0.26.2", "libp2p-mplex": "^0.8.5", "libp2p-pnet": "^0.1.0", "libp2p-secio": "^0.11.1", "libp2p-tcp": "^0.13.2" }
Are y using this index.js
?
emclab
3
I just found the index.js is empty. Not sure how it happened.