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.

Fail: cannot find module async/each #853

Closed
@baimurzin

Description

@baimurzin

I have installed ipfs
npm i ipfs

Then I call it:

const IPFS = require('ipfs');
const ipfs = new IPFS()

And got an error:

module.js:471
throw err;
^

Error: Cannot find module 'async/each'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/Users/vladislav/WebstormProjects/testipfs/ipfsdrive/node_modules/libp2p-floodsub/src/index.js:9:19)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (/Users/vladislav/WebstormProjects/testipfs/ipfsdrive/node_modules/ipfs/src/core/components/start.js:5:18)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)

There was no such error before.

UPD.
When i install manually
npm i async

It's work, but as I said before it works without intervention and manually installation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions