[BUG] npm config does not allow path
types to use ${ENVIRONMENT_VARIABLE} syntax.
#5267
Closed
2 tasks done
Labels
Bug
thing that needs fixing
Priority 1
high priority issue
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
I'm trying to configure a project using the command line by setting a custom registry and CA file. The project will be built in a docker container, so all configuration should be configured relative to the project, and nothing from the host should be referenced.
Since npm automatically turns the relative paths into absolute paths when setting cafile, let's try an use an environment variable as documented here: https://docs.npmjs.com/cli/v7/configuring-npm/npmrc
This results in the bug:
This is also an issue without setting
location
Expected Behavior
I expect
To write:
Steps To Reproduce
npm config set cafile='\${PWD}/cafile.crt'
Environment
; copy and paste output from `npm config ls` here
The text was updated successfully, but these errors were encountered: