Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Cannot install package #14660

Closed
1 of 3 tasks
MichaelJAndy opened this issue Nov 18, 2016 · 7 comments
Closed
1 of 3 tasks

Cannot install package #14660

MichaelJAndy opened this issue Nov 18, 2016 · 7 comments
Assignees
Labels
Milestone

Comments

@MichaelJAndy
Copy link

MichaelJAndy commented Nov 18, 2016

I'm opening this issue because:

  • npm is crashing when performing an install of parasoid

What's going wrong?

How can the CLI team reproduce the problem?

/parsoid-git/ makepkg -si
Failure.
See logs https://gist.github.com/MichaelJAndy/0c6a66460839203688515aeb4ef89ec5

supporting information:

  • npm -v prints: 4.0.2
  • node -v prints: 7.1.0
  • npm config get registry prints: https://registry.npmjs.org/
  • Windows, OS X/macOS, or Linux?: Linux
  • Network issues:
    • Geographic location where npm was run:
    • I don't use a proxy
  • Container:
    • N/A
@legodude17
Copy link
Contributor

legodude17 commented Nov 18, 2016

That is a problem... Any ideas @zkat? Can you reproduce @kenany?

@kenany
Copy link
Contributor

kenany commented Nov 18, 2016

@legodude17 Might be a duplicate of #14427.

@legodude17
Copy link
Contributor

Yeah. Might be the same problem. Try reinstalling @MichaelJAndy.

@MichaelJAndy
Copy link
Author

MichaelJAndy commented Nov 18, 2016

Hi guys, thanks for the replies - Reinstalling npm is not the correct answer in this situation, I reinstalled npm and cleared npm cache etc... but that didn't solve the issue.

Performing a downgrade of npm from 4.0.2 to 3.9.6 has allowed me to install Parsoid.

For those on Arch Linux, no need to uninstall NPM, the following will replace the broken version with the working one:

wget https://archive.archlinux.org/packages/n/npm/npm-3.9.6-1-any.pkg.tar.xz
pacman -U npm-3.9.6-1-any.pkg.tar.xz
yaourt -S parsoid-git

If you need you can then add npm in the IgnorePkg list in pacman.conf so that it doesn't accidently get upgraded to the broken version upon pacman -Syu
https://wiki.archlinux.org/index.php/Pacman#Skip_upgrade_package

@kenany
Copy link
Contributor

kenany commented Nov 18, 2016

Right, as mentioned (#14427 (comment)) in the issue I linked above, this is a bug, so reinstalling won't fix it.

@iarna
Copy link
Contributor

iarna commented Nov 19, 2016

Happily I just tracked down the root cause of this error (and errors like it) today.

@zkat
Copy link
Contributor

zkat commented Dec 2, 2016

Fixed as of npm@4.0.5, which can be installed with npm install -g npm@4.0.5. See #15082

@zkat zkat closed this as completed Dec 2, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants