Reputation: 2135
I am using Visual Studio Code's integrated terminal, which I have changed to bash but commands like ng
and tsc
don't work. It doesn't recognize them.
Any guesses why that is the case?
Upvotes: 0
Views: 1358
Reputation: 117
Just configure you VSCode terminal to run the Node.js command prompt, usually located in:
c:\Program Files\nodejs\nodevars.bat
To run automatically, edit the config user settings like this:
"terminal.integrated.shellArgs.windows": [
"\/k C:\\\"Program Files\"\\nodejs\\nodevars.bat"
]
Upvotes: 0
Reputation: 3778
have you installed the angular-cli as a GLOBAL package? and also tsc and so on ...
so double check if you've done for example:
npm install -g @angular/cli
npm install -g tsc
..and so on ...
the -g (or --globally)
param is the key .. cause it made your package 'global' on your pc
Upvotes: 1