I have an issue where, on every startup of VSCode, or every file opening, I get popups from node.exe related to npm install. The multiple quick popups are annoying and only appear when I open VSCode in non-admin mode. When I run VSCode as administrator, the issue doesn’t happen.
I tried uninstalling Node.js globally and reinstalling it again, but it didn’t help.
What could be causing these popups to appear, and how can I prevent them from showing up every time I launch VSCode in non-admin mode?
2
Answers
I've seen this issue Visual studio code runs NPM outside integrated terminal before and the only solution was to run VSCode as administrator. However, this solution restricts me from using AutoHotkeys and update VSCode automatically.
Here is the solution I randomly found today: check if
node.exe
isn't running as administrator, because this is most likely what's causing these node popups. Disablerun as administrator
in the properties of this file.npm cache clean --force
.