New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPM install fails with 'edgesout' warning #3998
Comments
It's having an issue. I tried with upgrading and downgrading node and npm versions it always shows an error. To Fix this use latest LTS v5.3.10 version of styled-components For projects using JS/JSX(JavaScript) For projects using TS/TSX(TypeScript) |
thx! |
I was having the same issue. |
Thanks~ I was having the same issue as well! |
i was having the same problem... thanks! |
Hello Everyone! ✋ Phew... I'm not the only one with this problem. For the moment the only and secure solution is use a previous version. In my case y decided to downgrade npm install "styled-components@5.3.10" It could be usefull publish the output terminal 💻 $ npm install styled-components
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\koden\AppData\Local\npm-cache\_logs\2023-05-08T12_55_24_726Z-debug-0.log Have a nice day! |
Having the same issue
Thanks, @kode-neko and Everyone else. |
Solution for styled-components installation issue (v6.0.0-rc.1)Hello everyone, If you have encountered issues installing styled-components recently, it might be due to the newly published unstable version 6.0.0-rc.1, published 2 days ago. Here's the solution to this problem. To install the latest unstable version (v6.0.0-rc.1) of styled-components, run the following command: However, if you prefer to use a stable version (v5.x.x) instead of the unstable version, you can install it using the following command: |
I'm having same issue. Thanks. |
What about using latest keyword instead of using the exact version? |
At the time of that comment it was latest LTS version. So I mentioned it |
Yh same using this it solved |
got solved by |
According to the log it seems npm is broken, not?
|
Thanks u saved me! I felt useless without it |
This worked for me. Thanks |
Thanks you helped me! |
Just use: |
None of the above solutions worked for me. |
Phew, thanks for all the solutions guys |
Can confirm this for my Next.js 13 project. |
I faced the same issue with my Next 13 project. But I could install it successfully by running:
|
Subscribing. |
Because my project does not depend on --- /usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js.orig 2023-04-12 05:45:24.000000000 +0200
+++ /usr/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js 2023-05-24 18:15:49.699840640 +0200
@@ -1304,6 +1304,11 @@
continue
}
+ var x = node.parent.edgesOut.get(edge.name);
+ //console.log('\nedge.name=\n', edge.name, '\n', x );
+ if (!x)
+ continue;
+
const parentEdge = node.parent.edgesOut.get(edge.name)
const { isProjectRoot, isWorkspace } = node.parent.sourceReference
const isMine = isProjectRoot || isWorkspace |
Node 18.15.0
NPM 9.6.7
Ubuntu Linux
VS Code
Regular Next JS project
Install works fine with an older version of SC i.e. npm i styled-components@5.3.1
Installed SC a few hours ago in a copy of this repo, so it must be the latest release.
Steps to reproduce
npm i styled-components
The text was updated successfully, but these errors were encountered: