`npm` v12 drops support for `--msvs-version=[year]` and `--python=[path]`
Author: cclaussCreated Jan 4, 2026Updated Jan 4, 2026
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.2Warnings 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
Source: nodejs/node-gyp