Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Cannot find module 'libp2p-crypto' #1571

@olizilla

Description

@olizilla
  • Version: 0.32
  • Platform: all
  • Subsystem:

Type:

Bug

Severity:

High

Description:

libp2p-crypto isn't listed in the package.json dependencies of js-ipfs, but is used

const crypto = require('libp2p-crypto')

$ node src/cli/bin.js daemon
Initializing daemon...
/Users/oli/Code/ipfs/js-ipfs/node_modules/yargs/yargs.js:1144
      else throw err
           ^

Error: Cannot find module 'libp2p-crypto'

$ node --version
v8.12.0

$ npm --version
6.4.1

Steps to reproduce the error:

  • Pull from js-ipfs master,
  • npm install
  • run node src/cli/bin.js daemon

Metadata

Metadata

Assignees

Labels

P1High: Likely tackled by core team if no one steps upexp/noviceSomeone with a little familiarity can pick upkind/bugA bug in existing code (including security flaws)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions