`npm` v12 drops support for `--msvs-version=[year]` and `--python=[path]`
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 10.7k
- Forks
- 1.9k
- Avg merge
- 1d 4h
- Merged PRs (30d)
- 5
Description
npm cli v12 will drop support for these two command-line options.
% npm --msvs-version=2022 --python=/usr/bin/python3 --version
npm warn Unknown cli config "--msvs-version". This will stop working in the next major version of npm.
npm warn Unknown cli config "--python". This will stop working in the next major version of npm.
npm warn Unknown user config "node_gyp". This will stop working in the next major version of npm.
11.6.2
Warnings under step 5 Run Node tests:
https://github.com/search?q=repo%3Anodejs%2Fnode-gyp+--msvs-version
https://github.com/search?q=repo%3Anodejs%2Fnode-gyp+--python
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the warnings in the linked node-gyp Actions run, specifically the “Run Node tests” step, and inspect the repository search results for --msvs-version and --python. Determine which references produce the npm v12 warnings and verify completion by rerunning the affected Node tests without those warnings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, python
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100