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
fnm MUST have to initialize the env var by fnm command, otherwise the nodenpm can't be found
Initial script in Pwsh's profile don't affect Windows default new process
Due to this design, fnm can live together with official system installed node.js, that means on no fnm command init profile's shell, the system default node.js will be used.
Due to 3., this issue can be work around by manually install a system level official node.js (Already verified)
Due to above, I suggest not to fix this issue for now, since we can't cover every node.js version manager's every special behaviors.
I just started trying to use this Kit on a clean install of Win 11 and this was the first of many errors/problems I have encountered so far. Why mention it? Because it's actually very difficult when you're starting even to work out what "manually install a system level official node.js" actually means. Starting from scratch, you don't seem to be able to install the MS Windows build tools without either going through chocalatey (i.e. I have to use the node/npm installer and it just seems to be a different version from the one that the Kit documentation link took me to; using npm directly to install the build tools doesn't seem to be possible until you've installed node/npm. Nasty loop. But the other suggested methods of installing the Windows Build Tools seem to require that I install a version of the full Visual Studio, whereas the entire point of using this Kit is just to use VS Code! Think perhaps Microsoft should at least document the more detailed steps involved in getting all the necessary components in place.
Describe the bug
Dev Kit Can't Recognize the NPM command which is installed by
fnm
.Details
On a totally new environment and install node.js with
fnm
:Check pre-requirements failed and create new add-in failed:
I guess this may related to the special method that
fnm
make the system link, or the special way VSCode read environment vars.Notice
fnm
is an Node.js official recommend way to install node.js (from Node.js official website):The text was updated successfully, but these errors were encountered: