Skip to content

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

Closed

Description

@thefordyking

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

Activity

  1. added
    Bugthing that needs fixing
    Needs Triageneeds review for next steps
    Release 7.xwork is associated with a specific npm 7 release
    on Feb 18, 2021
  2. changed the title [-][BUG] cannot read property'length'of undefined with nom[/-] [+][BUG] cannot read property'length'of undefined with npm[/+] on Feb 18, 2021
  3. changed the title [-][BUG] cannot read property'length'of undefined with npm[/-] [+][BUG] cannot read property 'length' of undefined with npm[/+] on Feb 18, 2021
  4. ljharb commented on Feb 18, 2021

    @ljharb
    Contributor

    Can you try npm v7.5.4?

  5. thefordyking commented on Feb 18, 2021

    @thefordyking
    Author

    Fixed it

  6. thefordyking commented on Feb 18, 2021

    @thefordyking
    Author

    No, I cannot update npm with npm

  7. ljharb commented on Feb 18, 2021

    @ljharb
    Contributor

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

  8. thefordyking commented on Feb 19, 2021

    @thefordyking
    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.

  9. nlf commented on Apr 9, 2021

    @nlf
    Contributor

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 7.xwork is associated with a specific npm 7 release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions