Search code examples
npmterminalcommand-line

react-textfit not installing properly


I am trying to do npm

npm i react-textfit

for my calculator app, but for some reason this doesn't work.

This is the what the terminal returns when I run the command


Solution

  • I was facing the same problem a few days back Check for the following

    • Are the other dependencies installed using Yarn, if yes run the same command with yarn add react-textfit
    • Delete the package.json or the yarn.lock file along with the node_modules and install everything again using yarn
    • If it is still not fixed using the --force flag at the end of your install command