Reputation: 485
The problem is that I can actually access the C:\Program Files\nodejs\node.exe through Windows CMD like : node -v:
C:\Users\User>node -v
v16.13.0
But the Visual Studio Code (with installed node.js extension pack) doesn't recognize the node in terminal. All that I could have found myself is that:
node : The term 'node' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
Upvotes: 1
Views: 18463
Reputation: 485
Everything is working for now, I just had to manually close and re-open terminal through VSCode -> Terminal -> New Terminal, also pressing the "Powershell" button on terminal panel could've solved the issue.
Upvotes: 5