Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

npm ERR! Cannot read properties of null (reading 'edgesOut')

Tags:

node.js

C:\Users\Ahmet\Desktop\İrem\7\üü> npm i (any package-name)

npm ERR! Cannot read properties of null (reading 'edgesOut')

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Ahmet\AppData\Local\npm-cache\_logs\2022-01-21T17_53_37_530Z-debug-0.log
like image 483
iremsen07 Avatar asked Sep 01 '25 17:09

iremsen07


2 Answers

If you're getting this error while installing react styled-components, and there are no mistakes in your filename, directory as mentioned in other answers, then you have 3 solutions.

The latest version of styled-components is v6 but there is some issue while doing npm i styled-components. So either

  1. Use V5, npm install [email protected], OR
  2. Use yarn, yarn install styled-components, OR
  3. To use the beta version, npm install styled-components@latest
like image 106
Rishabh Singh Avatar answered Sep 04 '25 08:09

Rishabh Singh


The following command worked for me:

npm install styled-components@latest
like image 31
ADNAN WASEEM Avatar answered Sep 04 '25 08:09

ADNAN WASEEM