Skip to content

Missing grunt dependency in eo2js and eo2js-runtime package.json #133

@Habibullo-777

Description

@Habibullo-777

🐞 Bug Report

When attempting to run npm test on a fresh clone of the project, the following error occurs:

Image

Resolution:

The error was resolved by installing grunt-cli globally using the following command:

sudo npm install -g grunt-cli

While this resolves the issue on my local machine, it is not an ideal solution for everyone because it requires users to have grunt-cli installed globally. This can lead to inconsistencies across different setups.

Suggested Fix:
To avoid relying on global installations, I suggest adding grunt-cli to the devDependencies in both the eo2js/package.json and eo2js-runtime/package.json files. This would ensure that anyone who clones the repository can run the tests without needing to install global dependencies.

In eo2js/package.json:

npm install --save-dev grunt-cli

In eo2js-runtime/package.json:

npm install --save-dev grunt-cli

Conclusion:
Adding grunt-cli to the devDependencies would ensure a smoother and more consistent setup for all users, without requiring them to manually install global dependencies.

@yegor256 can you check, please

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions