Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npx grunt fails with "Warning: spawn EINVAL" error #423

Open
ErnestMatskevich opened this issue Dec 14, 2024 · 4 comments
Open

npx grunt fails with "Warning: spawn EINVAL" error #423

ErnestMatskevich opened this issue Dec 14, 2024 · 4 comments

Comments

@ErnestMatskevich
Copy link

When running npx grunt in the project directory, the following error occurs:

Warning: spawn EINVAL Use --force to continue.

Aborted due to warnings.

Probably problem with Node.js version (which version is sufficient to work with it?)

Is there way to run all tests without using Grunt?

@ErnestMatskevich
Copy link
Author

After running command npx mocha test/**/*.js --timeout 1200000 tests were covered. Also used npx grunt --force to run eslint part. Mocha and Eslint both worked fine when calling directly, but single command npx grunt provides error like described in comment above.

@yegor256
Copy link
Member

@ErnestMatskevich I just ran npx grunt locally and it worked just fine. This is my environment:

$ node --version
v22.8.0
$ npx --version
10.8.2

@ErnestMatskevich
Copy link
Author

@yegor256 It seems that error occurs when running at Windows. I found ticket with simillar problem which faced @maxonfjvipon. How did it was fix in eo2js?

@yegor256
Copy link
Member

@ErnestMatskevich btw, our build works just fine on Windows: https://github.com/objectionary/eoc/actions/runs/12424448146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants