Skip to content

Commit a964e5b

Browse files
authoredAug 11, 2021
Remove _ prefix as it isn't allowed by npm config (#153)
1 parent 57bcc06 commit a964e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function urlTemplate (opts) {
6161
}
6262

6363
function getEnvPrefix (pkgName) {
64-
return 'npm_config_' + (pkgName || '').replace(/[^a-zA-Z0-9]/g, '_')
64+
return 'npm_config_' + (pkgName || '').replace(/[^a-zA-Z0-9]/g, '_').replace(/^_/, '')
6565
}
6666

6767
function getHostMirrorUrl (opts) {

0 commit comments

Comments
 (0)
Please sign in to comment.