Learning Angular 2 Directives Installation Install the required dependencies with $ npm i Run Execute the TypeScript compiler $ npm run tsc ..and then execute $ npm start ..to run the application in the browser at http://localhost:8000/app.