Skip to content

Commit

Permalink
Fix package.json cpu for node-linux-ppc64le (#186)
Browse files Browse the repository at this point in the history
Node.js defines `process.arch` as `ppc64` for both obsolete BE and current LE systems.  This currently prevents node-linux-ppc64le from being installable:

$ npm i node-linux-ppc64le
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for node-linux-ppc64le@19.1.0: wanted {"os":"linux","arch":"ppc64le"} (current: {"os":"linux","arch":"ppc64"})
npm ERR! notsup Valid OS:    linux
npm ERR! notsup Valid Arch:  ppc64le
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: ppc64
  • Loading branch information
yselkowitz authored Feb 26, 2024
1 parent c1a76f6 commit 1290de6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ async function buildArchPackage(os, cpu, version, pre) {
"LICENSE",
],
os: platform,
cpu: arch,
cpu: arch == 'ppc64le' ? 'ppc64' : arch,
};

debug("removing", dir);
Expand Down

0 comments on commit 1290de6

Please sign in to comment.