Zeeshan Adil
Zeeshan Adil

Reputation: 2135

commands not working properly in VS Code integrated terminal (Bash)

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

Answers (2)

Cappa
Cappa

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

federico scamuzzi
federico scamuzzi

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

Related Questions