1) Install node.js
apt-get install nodejs
2) create a symlink to make node available on console.
ln -s /usr/bin/nodejs /usr/bin/node
3) install npm
sudo apt-get install npm
4) install typescript
sudo npm install -g typescript
5) install angular-cli
sudo npm install -g angular-cli
6) Create new App
cd into your directory
sudo ng new first-app
cd into your first-app dir
sudo npm install
7) install typings
npm install typings --global
npm run postinstall
Run server
sudo ng serve
browse localhost:
http://localhost:4200/
Keine Kommentare:
Kommentar veröffentlichen