Community Packages

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#62569 - [node-gyp] Installs broken semver symlink

Attached to Project: Community Packages
Opened by helle vaanzinn (glitsj16) - Tuesday, 07 May 2019, 19:09 GMT
Last edited by David Runge (dvzrv) - Saturday, 31 August 2019, 23:54 GMT
Task Type Bug Report
Category Packages
Status Assigned
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 3
Private No


Installing node-gyp results in a broken symlink for semver.

Additional info:
* package version(s)

$ pacman -Q node-gyp
node-gyp 4.0.0-1

* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
Just install node-gyp

I'm seeing a broken symlink in /usr/lib/node_modules/node-gyp/node_modules/.bin/semver.
It points to ../semver/bin/semver but that is 2 steps up the path-chain in

Pretty much the same as what happens in for gulp...
This task depends upon

Comment by loqs (loqs) - Sunday, 13 September 2020, 02:59 GMT
Overwrite the link with one pointing to the correct location. Please test.
Comment by Tom (reztho) - Saturday, 10 October 2020, 15:48 GMT
What I wonder is... for these nodes packages with broken semver links, is it really needed to distribute its node_modules/.bin dir inside the archlinux package? Are those needed for the operations of the package itself?
Comment by Rose Kunkel (rosekunkel) - Sunday, 06 June 2021, 22:25 GMT
@loqs: Just saw your patch. Works great for me!