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
[BUG] npm error: Cannot destructure property name
of 'undefined' or 'null'.
#1832
Comments
@joewood can you try updating to the latest npm (ie. |
hi @joewood thanks for the report! I tested your reproduction steps and can confirm it was broken in Let us know in case you run into any new issues and thanks again for the help 😄 |
That fixed it, thanks! |
next-7 had an other problem similar this. |
Downgrading to NPM version 6 solved the problem for me: |
Encountering the same when trying to install a dependency from a GitHub URL. $ npm -v
7.3.0
npm ERR! npm verb stack TypeError: Cannot destructure property 'name' of 'node' as it is null. |
What dependency? |
Can be reproduced with: npm i -D git://github.com/GoogleChromeLabs/critters.git |
can be reproduced with:
On MacOS 10.15.7 Error:
|
@dmnsgn @Flam3rboy These are new issues, not related to the original post's root cause (which has been fixed some time ago). Can you please post a new issue so that we can triage this properly? Thanks. I'm digging into the repro cases you provided now. |
I got this bug running a dependency install with yarn on a brand new repo pulled from github. Using docker-compose to build my app. No clue why. Will update when I find logs |
It works for me too |
FYI @profesordavidvaldez @MikaBertels and anyone else landing on this issue in the future, instead of downgrading to a maintenance-only version, the recommended (and more future-proof) solution if you find yourself facing You can add it to your $ echo "legacy-peer-deps=true" >> .npmrc OR run the installer with the cli option: |
For more info on the |
alternatively, if you know what you are doing, then |
I was just having the same error trying to run I'm using node v15.4.0 and npm v7.6.3 I was able to use the following as a workaround: Pardon me for the lack of insight but I'm not sure what's causing the error or why/what |
Thanks for this mate ! |
Thanks man! |
Current Behavior:
When trying to install
npm install react-scripts
into a repo with typescript@^4.0.0 npm reports the following:Log file extract:
Expected Behavior:
Install react-scripts as expected.
Steps To Reproduce:
In an empty directory:
The text was updated successfully, but these errors were encountered: