Libp2p-tcp Nodejs not working

Hello every one!
I am trying to run the example of libp2p-tcp in nodejs but it doesn’t work.
I also couldn’t find the documentation. Who has let me please :slight_smile:
Looking forward to your early reply, thanks!

I deleted ‘await’ --> Cannot find module ‘it-pipe’ ???

You’re getting the await error because await calls have to be wrapped inside async functions.

async run () {
  await listener.listen(addr)

For the missing it-pipe module you need to make sure that you have added all of the modules listed in the file you shared in your package.json file:
npm install it-pipe streaming-iterables libp2p-tcp multiaddr

1 Like