[BUG] Run Scripts and Lifecycle Scripts Broken on IBM i #6025
Labels
Bug
thing that needs fixing
Needs Triage
needs review for next steps
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
This issue applies to certain versions of NPM supplied by IBM in the yum repos for the IBM i operating system. This issue does NOT seem to affect the same versions of NPM on other platforms.
Affected NPM versions:
Even though the NPM version number is the same, the behavior is different in the 2 scenarios mentioned above.
In affected versions of NPM, lifecycle and run scripts are entirely broken. This prevents many packages from installing properly.
Take for example this simplistic package (create files in a directory named 'test'):
File test/package.json:
File test/install.js:
File test/do_something.js:
npm install
from inside the 'test' directory fails with this output:npm run do_something
from inside the 'test' directory fails with this output:npm run --prefix test do_something
, it fails with this output:These problems suddenly cropped up with the recent updates to the nodejs16 and nodejs18 packages in the IBM i yum repos. For example, NPM 8.5.0 shipped with Node.js 16.14.2 is NOT affected. Also, NPM 8.6.0 shipped with Node.js 18.0.0 is NOT affected.
Expected Behavior
The lifecycle and run scripts should execute without error.
Steps To Reproduce
See above.
Environment
The text was updated successfully, but these errors were encountered: