Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Not able to convert ndjson to json in Linux using cucumber standalone json-formatter #26

@surajwaitz

Description

@surajwaitz

Summary

I am getting below error while converting ndjson to json file using cumber standalone json-formatter (https://github.com/cucumber/json-formatter) in Linux. I tried the same in windows OS and it's working as expected.

An error was thrown in your plugins file while executing the handler for the after:run event.

The error we received was:

Error: spawn cucumber-json-formatter ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
ERROR: 1

As per their documentation we will be able to run cucumber-json-formatter --help after the json-formatter setup but I am getting cucumber-json-formatter: command not found error while executing the same.

Environment

OS : Ubuntu 22.0.4
json-formatter : v19.0.0
Downloaded FIle : cucumber-json-formatter-linux-amd64
Referred Document : https://github.com/cucumber/json-formatter

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