Skip to content
  • Home
  • Search
  • Tools
  • About
  • Terms of Service Agreement
  • Log In
  • Guest

Angular: Step-by-Step: Environment Setup

Posted on February 6, 2021February 6, 2021 By Andre Dias
angular, javascript

Table of Contents

  • 1. Download and install Node.js.
    • Windows
    • Linux
  • 2. CLI INSTALL
    • Global Installation
    • Local Intallation
  • 3. Creating The Project

1. Download and install Node.js.

Windows

On Windows, It comes with installer.

Download | Node.js

Test the installations.
On console, type:
node -v

Linux

*** NOTES:
1. node 8x is not available for wheezy.
So, it was made an attempt, then installed the version 6x, which is the compatible version.
If using a later version, use version 8x.
08/25/17 21:05:30

cd /home
– set apt repository:

curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash –
@FAIL: ## Your distribution, identified as “wheezy”, is not currently supported, please contact NodeSource at https://github.com/nodesource/distributions/issues if you think this is incorrect or would like your distribution to be considered for support

– for wheezy:
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash –
– output:
## Run `apt-get install nodejs` (as root) to install Node.js v6.x and npm

– install node:
!sudo apt-get install -y nodejs
apt-get install nodejs

Test the installations.
On console, type:
node -v

@FROM:
nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
nodesource.com/blog/installing-node-js-tutorial-debian-linux/


@For internal site control.:
n;node-install<memo<ramnode;.

2. CLI INSTALL

CLI stands for Common Line Interface and brings important commands to be used on console.

Global Installation

– Install CLI globally, but if already installed just use “npm install”:
npm install -g @angular/cli

The last one:
npm install -g @angular/cli@latest

To install a specific version:
npm install -g @angular/cli@10.0.8

Local Intallation

Install angular locally  if it is desired a different version of the global one.
In this case, a local node_modules folder is created at current dir.
This folder shall not be used for the project. Let it under the root directory.
When creating a new project, a new node_modules is created inside the project’s dir, usually a subdirectory of the local CLI installation.

npm install @angular/cli

If @angular/cli already installed globally, then go straight to the next cmd.

@DEPRECATED: npm install -g angular-cli
(cause “fallbackLoader option has been deprecated” message).
@Check angularx***faq

@For internal site control.:
y;project setup<memo<angularx;.
n;install<memo<revision05a10;.

3. Creating The Project

– generate a new project and skeleton application:
ng new MY_PROJECT

– project using SASS, you need to run the following command:
ng new MY_PROJECT –style=scss

– then launch the server:
cd MY_PROJECT
ng serve

– starts serve and opens on browser:
ng serve -o

– or to start  specific port (not default = 4200):
ng serve –port 9001

– or to start with host and port definition:
ng serve –host 0.0.0.0 –port 4205

– point to:
http://localhost:4200/

– returns:
Our app works!

 

 

 

Andre Dias
Andre Dias

Brazilian system analyst graduated by UNESA (University Estácio de Sá – Rio de Janeiro). Geek by heart.

Post navigation

❮ Previous Post: JavaScript: Svelte — A Little Guide to Start Studying This Interesting Framework
Next Post: Web App: Resilience and Performance Key Points – A Summary ❯

Search

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Filter by Categories
angular
bootstrap
browser
computer science
container
data persistence
database
devops
editors
hardware
health
hosting
info
internet
it
java
javascript
network
node.js
play
protocol
security
self-help
selfhelp
server
services
soft
software engeneering
sql
support
Systems
techs
Uncategorized
versioning
web
web design
windows
wordpress

Recent Posts

  • Angular From Scratch Tutorial – Step 9: Modal
  • Angular From Scratch Tutorial – Step 8: Miscellany
  • Angular From Scratch Tutorial – Index
  • angular: Reading JSON files
  • NODE.JS: SEQUELIZE: MVC Project – 4TH STEP

Categories

  • angular (19)
  • bootstrap (6)
  • browser (4)
  • computer science (4)
  • container (1)
  • data persistence (2)
  • database (11)
  • devops (1)
  • editors (1)
  • hardware (4)
  • health (2)
  • hosting (1)
  • info (1)
  • internet (2)
  • it (1)
  • java (13)
  • javascript (32)
  • network (6)
  • node.js (1)
  • play (1)
  • protocol (1)
  • security (4)
  • self-help (1)
  • selfhelp (1)
  • server (2)
  • services (1)
  • soft (1)
  • software engeneering (1)
  • sql (1)
  • support (2)
  • Systems (1)
  • techs (3)
  • Uncategorized (2)
  • versioning (6)
  • web (1)
  • web design (5)
  • windows (3)
  • wordpress (4)

Copyright © 2025 .

Theme: Oceanly by ScriptsTown

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT