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

Unsupported engine for karma@1.7.1 #2906

Closed
ayarushin opened this issue Dec 8, 2017 · 3 comments
Closed

Unsupported engine for karma@1.7.1 #2906

ayarushin opened this issue Dec 8, 2017 · 3 comments

Comments

@ayarushin
Copy link

ayarushin commented Dec 8, 2017

Hi all, I use npm config set engine-strict true, when I try to run npm install I catch next error:

npm ERR! code ENOTSUP
npm ERR! notsup Unsupported engine for karma@1.7.1: wanted: {"node":"0.10 || 0.12 || 4 || 5 || 6 || 7 || 8"} (current: {"node":"9.2.0","npm":"5.5.1"})
npm ERR! notsup Not compatible with your version of node/npm: karma@1.7.1
npm ERR! notsup Not compatible with your version of node/npm: karma@1.7.1
npm ERR! notsup Required: {"node":"0.10 || 0.12 || 4 || 5 || 6 || 7 || 8"}
npm ERR! notsup Actual:   {"npm":"5.5.1","node":"9.2.0"}

Expected behaviour

npm install will be ok

Actual behaviour

Crashed with error

Environment Details

OS X high sierra, node 9.2.0 npm 5.5.1

  • Karma version (output of karma --version): 1.7.1

Steps to reproduce the behaviour

  1. Add to package.json:
  "engines": {
    "node": "9.2.0",
    "npm": "5.5.1"
  },
  "scripts": {
    "preinstall": "npm config set engine-strict true"
  },
  1. Check that you use node 9.2.0 and npm 5.5.1
  2. Run npm install
@johnjbarton
Copy link
Contributor

The source is already upgraded, so this will be fixed in the next release.

@ayarushin
Copy link
Author

@johnjbarton great, thanks!

@MHHJisan
Copy link

I am facing this issue for node v14.21.3 and npm v6.14.18

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

3 participants