Skip to content

Command failed with ENOENT: ipfs/src/cli/bin.js daemon... when spawing a js node from a factory #471

@sebastiendan

Description

@sebastiendan

Hi,

#458 introduced changes on how the js/go bin are resolved, but Usage on README was not updated, so took me a while before understanding I have to specify the bin path, the same way it's done in /examples.

When testing with:

this.node = await factory.spawn({
  type: 'js',
  ipfsBin: require.resolve('ipfs/src/cli/bin.js'),
})

I get the following error:

Command failed with ENOENT: ipfs/src/cli/bin.js daemon --enable-preload false
spawn ipfs/src/cli/bin.js ENOENT 


    at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
    at onErrorNT (internal/child_process.js:456:16)
    at processTicksAndRejections (internal/process/task_queues.js:81:21)

Metadata

Metadata

Assignees

Labels

exp/noviceSomeone with a little familiarity can pick uptopic/docsDocumentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions