skip to Main Content

In Reactjs, while running npm install, styled-components display an error. While installing other dependencies is working fine, the problem is with styled-components.

npm ERR! cannot read the properties of null (read "edgesOut").
npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersDELLAppDataLocalnpm-cache_logs2023-05-09T07_37_18_586Z-debug-0.log

2

Answers


  1. I also have run into this issue.

    Using

    npm install [email protected]
    

    worked for me.

    Login or Signup to reply.
  2. That didn’t work for me. I instead google searched npm styled-components and found that this worked for me:

    npm install styled-components@^5.0.0 react@^16.8 react-dom@^16.8 react-is@^16.8
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search