npm ERR! null のプロパティを読み取ることができません ('edgesOut' を読み取っています) 質問する

npm ERR! null のプロパティを読み取ることができません ('edgesOut' を読み取っています) 質問する
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

ベストアンサー1

react styled-components のインストール中にこのエラーが発生し、他の回答に記載されているようにファイル名やディレクトリに間違いがない場合は、3 つの解決策があります。

styled-componentsの最新バージョンはv6ですが、実行中に問題が発生しますnpm i styled-components

  1. V5、またはnpm install [email protected]
  2. 糸、yarn install styled-componentsまたは
  3. ベータ版を使用するには、npm install styled-components@latest

おすすめ記事