0

I am trying to install @tensorflow-models/[email protected] , but it doens't install. what is the problem ?

npm WARN @tensorflow-models/[email protected] requires a peer of @tensorflow/tfjs-core@~1.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN @tensorflow-models/[email protected] requires a peer of @tensorflow/tfjs-converter@~1.2.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! @tensorflow/[email protected] install: `node scripts/install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @tensorflow/[email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/poran/.npm/_logs/2020-04-04T10_31_00_265Z-debug.log
0

1 Answer 1

1

You need to install TF Core and TF Converter before installing TF model

  1. npm i @tensorflow/tfjs-core

  2. npm i @tensorflow/tfjs-converter

  3. npm i @tensorflow-models/mobilenet

Sign up to request clarification or add additional context in comments.

3 Comments

npm WARN @tensorflow-models/[email protected] requires a peer of @tensorflow/tfjs-core@~1.2.1 but none is installed. You must install peer dependencies yourself. npm WARN @tensorflow-models/[email protected] requires a peer of @tensorflow/tfjs-converter@~1.2.1 but none is installed. You must install peer dependencies yourself. I see still same
npm i tensorflow/tfjs-node
You forgot an @ symbol. npm i @tensorflow/tfjs-node worked for me

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.