-
Notifications
You must be signed in to change notification settings - Fork 6
Description
🐞 Bug Report
When attempting to run npm test
on a fresh clone of the project, the following error occurs:
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