The current latest libp2p package is broken. You can specify a more recent specific version, as mentioned in the issue, but the real solution is for the maintainers to publish a new latest version, so that this stops happening to new developers.
latest
libp2p