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

knn classifier fails with npm #4976

Closed
nerkn opened this issue Apr 23, 2021 · 2 comments
Closed

knn classifier fails with npm #4976

nerkn opened this issue Apr 23, 2021 · 2 comments
Assignees

Comments

@nerkn
Copy link

nerkn commented Apr 23, 2021

System information

  • OS : Linux n-Lenovo-ideapad-320-15ISK 5.4.0-70-generic Add support for headless OpenGL #78-Ubuntu SMP Fri Mar 19 13:29:52 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  • TensorFlow.js installed from (npm or script link): npm install '@tensorflow/tfjs'
  • TensorFlow.js version:
    "@tensorflow-models/coco-ssd": "^2.2.2",
    "@tensorflow-models/mobilenet": "^2.1.0",
    "@tensorflow/tfjs": "^3.4.0",
    "@tensorflow/tfjs-node": "^3.4.0",
  • CUDA/cuDNN version: NA

Describe the problem
npm installation fails

Exact sequence of steps executed before running into the problem
Have coco-ssd and mobilenet already installed and working smoothly also want to add knn classifier
npm i @tensorflow-models/knn-classifier

Any other info / logs
npm i @tensorflow-models/knn-classifier
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: @tensorflow/[email protected]
npm ERR! node_modules/@tensorflow/tfjs-core
npm ERR! peer @tensorflow/tfjs-core@"^3.3.0" from @tensorflow-models/[email protected]
npm ERR! node_modules/@tensorflow-models/coco-ssd
npm ERR! @tensorflow-models/coco-ssd@"^2.2.2" from the root project
npm ERR! peer @tensorflow/tfjs-core@"^3.1.0" from @tensorflow-models/[email protected]
npm ERR! node_modules/@tensorflow-models/mobilenet
npm ERR! @tensorflow-models/mobilenet@"^2.1.0" from the root project
npm ERR! 6 more (@tensorflow/tfjs, @tensorflow/tfjs-backend-cpu, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! @tensorflow-models/knn-classifier@"" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: @tensorflow/[email protected]
npm ERR! node_modules/@tensorflow/tfjs-core
npm ERR! peer @tensorflow/tfjs-core@"^1.2.1" from @tensorflow-models/[email protected]
npm ERR! node_modules/@tensorflow-models/knn-classifier
npm ERR! @tensorflow-models/knn-classifier@"
" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /home/n/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:

@rthadur rthadur self-assigned this Apr 23, 2021
@rthadur
Copy link
Contributor

rthadur commented May 19, 2021

I guess there are duplicate dependencies in the package.json , which needs to be resolved , please check.
This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there.

@rthadur rthadur closed this as completed May 19, 2021
@google-ml-butler
Copy link

Are you satisfied with the resolution of your issue?
Yes
No

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

No branches or pull requests

2 participants