-
Notifications
You must be signed in to change notification settings - Fork 42
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] - /usr/lib/nodejs18/bin is linked to /usr/bin instead of /usr/local/bin incorrectly #922
Comments
@AndyZhang0707 from the
This might help you understand what's going on. Moving forward
Latest container release:
Notice the |
Just a few thoughts about this command that might be helpful to others...
I don't see any issues with the package. It works as expected, npm correctly installs cli tools and they can be executed. |
Describe the bug
The latest amazonlinux:2023 introduced a breaking change in the minor or patch release amazonlinux:2023.6.20250218.2. Previously the npm prefix is set to
/usr/local
in/etc/npmrc
while the latest one sets the prefix to/usr/lib/nodejs18
. Also, the/usr/lib/nodejs18/bin
is a soft link of/usr/bin
. In the release note it's mentioned the change shouldn't affect the majority customers (https://docs.aws.amazon.com/linux/al2023/release-notes/relnotes-2023.6.20250218.html) but this change causesnpm install kong-pdk
to install kong-js-pluginserver into /usr/bin
instead of/usr/local/bin
, which breaks our install. Probably/usr/lib/nodejs18/bin
should be linked to/usr/local/bin
instead of/usr/bin
.To Reproduce
Steps to reproduce the behavior:
docker run -it --rm amazonlinux:2023 /bin/bash
yum install -y nodejs npm && yum clean all && npm install --unsafe -g kong-pdk
Expected behavior
The
kong-js-pluginserver
should be installed into/usr/local/bin
but now it's installed into/usr/bin
.Additional context
If you use the image
amazonlinux:2023.6.20250203.1
and below versions, thekong-js-pluginserver
is installed into/usr/local/bin
correctly.The text was updated successfully, but these errors were encountered: