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 noticed that when installing NPM packages globally, they are shared between all installed Node.js version.
For instance, I did a npm install -g yarn and noticed that after switching to another Node.js version (using nodist env ..) that yarn was also available when using another Node.js version.
I noticed that the prefix used by Node.js doesn't appear to be related to the active Node.js version
When running npm config list, the "prefix" (under "environment configs") was "C:\Program Files (x86)\Nodist\bin" instead of something Node.js version specific like "C:\Program Files (x86)\Nodist\v-x64\6.9.5").
The text was updated successfully, but these errors were encountered:
A real solution would involve detecting whether the target file is in the global modules folder and using the cwd instead of the target dir in that case.
I noticed that when installing NPM packages globally, they are shared between all installed Node.js version.
For instance, I did a
npm install -g yarn
and noticed that after switching to another Node.js version (usingnodist env ..
) thatyarn
was also available when using another Node.js version.I noticed that the prefix used by Node.js doesn't appear to be related to the active Node.js version
When running
npm config list
, the "prefix" (under "environment configs") was "C:\Program Files (x86)\Nodist\bin" instead of something Node.js version specific like "C:\Program Files (x86)\Nodist\v-x64\6.9.5").The text was updated successfully, but these errors were encountered: