You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run an npm script from an activated python venv; but I cannot use my python venv in the script because npm overrides the path, thus making the system python interpreter the one that is picked up by the script instead of the venv python.
See the output is not the python venv that was already active
Environment
npm: 11.1.0
Node.js: v22.12.0
OS Name: Windows 11
System Model Name:
npm config:
; "builtin" config from C:\Users\ReenigneArcher\AppData\Roaming\npm\node_modules\npm\npmrcprefix = "C:\\Users\\ReenigneArcher\\AppData\\Roaming\\npm"; node bin location = C:\Program Files\nodejs\node.exe; node version = v22.12.0; npm local prefix = C:\Users\ReenigneArcher\Dev\git\devicon; npm version = 11.1.0; cwd = C:\Users\ReenigneArcher\Dev\git\devicon; HOME = C:\Users\ReenigneArcher; Run `npm config ls -l` to show all defaults.
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
This is the same as npm/npm#12318, which was fixed, and then unfixed in npm v7.
#2808
I am trying to run an npm script from an activated python venv; but I cannot use my python venv in the script because npm overrides the path, thus making the system python interpreter the one that is picked up by the script instead of the venv python.
Expected Behavior
Do not change path order
Steps To Reproduce
npm run python-venv
Environment
The text was updated successfully, but these errors were encountered: