I want to install typescript, so I used the following command:
npm install -g typescript
and test tsc --version
, but it just
This answer is specific for iTermV2 on MAC
First of all, I needed to instal as sudo
(admin) during NPM install
sudo npm install -g typescript
NPM installs the libraries under /usr/local/Cellar/node/
folder and symlinks at /usr/local/Cellar/node/
hence I went ~/.zshrc ( .bashrc, if you use bash)and added /usr/local/Cellar/node/
to the $PATH.
source ~/.zshrc
(.bashrc in your case)