A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pnpm/pnpm/issues/8827 below:

Disable NODE_ENV detection during install · Issue #8827 · pnpm/pnpm · GitHub

Contribution Describe the user story

There is automatic detection of NODE_ENV and as a result some dependencies could be omitted during install https://pnpm.io/cli/install#--prod--p

Sometimes you have set NODE_ENV before install, i.e. NODE_ENV=production and then all dev dependencies will not be installed, but they are required for build. The things can be even more complicated when install command is running by some wrapper tool, and you do not have a way to bypass flags to pnpm

Also, there can be a problem on CI where NODE_ENV can be set globally for a job

Describe the solution you'd like

Option 1 - disable defaults for --prod and NODE_ENV detection, always install all dependencies unless explicit flag is set to install only specific set of dependencies

Option 2 - add a config property to .npmrc to skip NODE_ENV detection and install all dependencies

Describe the drawbacks of your solution

No response

Describe alternatives you've considered

No response

Aankhen, nickserv and ImSingeeLemmingh


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4