Skip to content
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] cannot read property 'length' of undefined with npm #2721

Closed
thefordyking opened this issue Feb 18, 2021 · 6 comments
Closed

[BUG] cannot read property 'length' of undefined with npm #2721

thefordyking opened this issue Feb 18, 2021 · 6 comments
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release

Comments

@thefordyking
Copy link

Current Behavior:

root@localhost:~/Desktop/fordycoin-miner# npm install node-fetch
npm ERR! Cannot read property 'length' of undefined

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-02-18T03_45_41_879Z-debug.log

Expected Behavior:

root@localhost:~/Desktop/fordycoin-miner# npm install node-fetch
//and it should continue installing the package

Steps To Reproduce:

Use version 7.5.3
Run 'npm install' with why package including npm

Environment:

  • OS: Ubuntu 4.9.117
  • Node: 10.19.0
  • npm: 7.5.3
@thefordyking thefordyking added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Feb 18, 2021
@thefordyking thefordyking changed the title [BUG] cannot read property'length'of undefined with nom [BUG] cannot read property'length'of undefined with npm Feb 18, 2021
@thefordyking thefordyking changed the title [BUG] cannot read property'length'of undefined with npm [BUG] cannot read property 'length' of undefined with npm Feb 18, 2021
@ljharb
Copy link
Contributor

ljharb commented Feb 18, 2021

Can you try npm v7.5.4?

@thefordyking
Copy link
Author

Fixed it

@thefordyking
Copy link
Author

No, I cannot update npm with npm

@ljharb
Copy link
Contributor

ljharb commented Feb 18, 2021

npm install -g npm errors out the same way? (possibly with sudo)

@thefordyking
Copy link
Author

yup I don't know what happened it was working a while ago My linux distro is kinda weird.since I'm running a vertral computer on a android device. But I got it to work in a terminal so I can update packages with that. But I will like to update the npm in my vertral linux thing.

@nlf
Copy link
Contributor

nlf commented Apr 9, 2021

we've made some improvements to how global updates work in the time since this was opened. if your current npm isn't capable of installing a new npm, you can always try our install script detailed here https://github.com/npm/cli#direct-download

that script will download and install the latest release for you and only requires a working nodejs installation

@nlf nlf closed this as completed Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

No branches or pull requests

3 participants