pnpm CLI
Відмінності від npm
На відміну від npm, pnpm перевіряє всі параметри. For example, pnpm install --target_arch x64 will
fail as --target_arch is not a valid option for pnpm install.
However, some dependencies may use the npm_config_ environment variable, which
is populated from the CLI options. У цьому випадку у вас є такі варіанти:
- explicitly set the env variable:
npm_config_target_arch=x64 pnpm install - force the unknown option with
--config.:pnpm install --config.target_arch=x64