Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't put empty environment vars into config set

  • Loading branch information...
commit 06e6195788f73da6a76bf9f09d405cf0bea45756 1 parent 2212118
@isaacs isaacs authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  lib/utils/ini.js
View
2  lib/utils/ini.js
@@ -162,6 +162,8 @@ function parseEnv (env) {
Object.keys(env)
.filter(function (k) { return k.match(/^npm_config_[^_]/i) })
.forEach(function (k) {
+ if (!env[k]) return
+
conf[k.replace(/^npm_config_/i, "")
.toLowerCase()
.replace(/_/g, "-")] = parseField(env[k], k)
Please sign in to comment.
Something went wrong with that request. Please try again.