Tuesday, October 9, 2018

TypeScript - Install TypeScript on Ubuntu 18.04

Prerequisite to installing TypeScript:
To install TypeScript on our local computer we need npm - node package manager. Refer the following link to install npm on your computer:
http://sashankexpresstech.blogspot.com/2018/10/javascript-install-nodejs-and-npm-in.html

Installing TypeScript:
I followed the instructions on its page: https://www.typescriptlang.org/#download-links

$ npm install -g typescript
/home/ubuntu/.nvm/versions/node/v8.11.1/bin/tsc -> /home/ubuntu/.nvm/versions/node/v8.11.1/lib/node_modules/typescript/bin/tsc
/home/ubuntu/.nvm/versions/node/v8.11.1/bin/tsserver -> /home/ubuntu/.nvm/versions/node/v8.11.1/lib/node_modules/typescript/bin/tsserver
+ typescript@3.1.1
added 1 package in 8.675s


To verify the installation:

$ which tsc
/home/ubuntu/.nvm/versions/node/v8.11.1/bin/tsc




No comments:

Post a Comment