Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Running:
npm config set python python3
Results in this error:
npm ERR! `python` is not a valid npm option
Expected Behavior
There shouldn't be any error; it should work. See documentation: https://docs.npmjs.com/cli/v9/commands/npm-config?v=true#set
This worked as expected and documented until node 18.14.0, in which version this unexpected behavior began.
Steps To Reproduce
docker run -it --entrypoint /bin/bash node:18.14.0
npm config set python python3 and see the aforementioned error
Environment
- npm: 9.3.1
- Node.js: v18.14.0
- OS Name: any
- System Model Name: n/a
- npm config:
; node bin location = /usr/local/bin/node
; node version = v18.14.0
; npm local prefix = /
; npm version = 9.3.1
; cwd = /
; HOME = /root
; Run `npm config ls -l` to show all defaults.
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
Running:
npm config set python python3Results in this error:
Expected Behavior
There shouldn't be any error; it should work. See documentation: https://docs.npmjs.com/cli/v9/commands/npm-config?v=true#set
This worked as expected and documented until node 18.14.0, in which version this unexpected behavior began.
Steps To Reproduce
docker run -it --entrypoint /bin/bash node:18.14.0npm config set python python3and see the aforementioned errorEnvironment