Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: discard NODE_ENV when installing project dependencies #6224

Merged
merged 1 commit into from
Jan 21, 2021

Conversation

haoqunjiang
Copy link
Member

Avoid empty node_modules when the user has set NODE_ENV to
production in the shell environment.

In the long run, we should have a more comprehensive preflight check
for execution environment though.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Docs
  • Underlying tools
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes
  • No

Other information:

Avoid empty `node_modules` when the user has set `NODE_ENV` to
`production` in the shell environment.

In the long run we should have a more comprehensive preflight check
for execution environment though.
@haoqunjiang haoqunjiang merged commit e1eba09 into vuejs:dev Jan 21, 2021
@haoqunjiang haoqunjiang deleted the fix-node-env branch January 21, 2021 08:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant