You should be able to do this by simply typing npm install -g typescript@2.0
. If this does not work, I am beginning to wonder what version of node and npm you are on. Try node -v
and npm -v
to find these out. You should be on node >4.5 and npm >3
↧
Answer by Andrew Reid for How to update TypeScript to latest version with npm?
↧