diff --git a/.changeset/odd-garlics-laugh.md b/.changeset/odd-garlics-laugh.md new file mode 100644 index 0000000000..d7ecd10ad8 --- /dev/null +++ b/.changeset/odd-garlics-laugh.md @@ -0,0 +1,6 @@ +--- +"@pnpm/plugin-commands-env": patch +"pnpm": patch +--- + +`pnpm env use` should download the right Node.js tarball on Raspberry Pi [#4007](https://github.com/pnpm/pnpm/issues/4007). diff --git a/packages/plugin-commands-env/src/node.ts b/packages/plugin-commands-env/src/node.ts index f3e406991a..975b71da19 100644 --- a/packages/plugin-commands-env/src/node.ts +++ b/packages/plugin-commands-env/src/node.ts @@ -11,6 +11,7 @@ import renameOverwrite from 'rename-overwrite' import tempy from 'tempy' import loadJsonFile from 'load-json-file' import writeJsonFile from 'write-json-file' +import normalizeArch from './normalizeArch' export type NvmNodeCommandOptions = Pick { + expect(normalizeArch(platform, arch)).toBe(normalizedArch) +})