How do you install Angular on windows 7

Viewed 31863

Hi this should be pretty straight forward but I'm getting stuck. I installed buildbot (0.9.06b)on my machine a Windows 7 machine. I have managed to get it up and running however when I try to display the web page(IE8), I get the error Angular not defined. This being a brand new windows box I was not too surprised. I proceeded to download NodeJS the executable and run it on the machine so Node is installed. I then went to Angular website downloaded the zip file, but i'm not sure what to do next? I tried

npm install Angular

and a few variations i.e specifying the version, unzipping the file. But still cannot install it. My machine is behind a firewall so it cannot just go off to the web and get more stuff. It all has to work locally. How should I go about installing Angular? How can I check that Angular is installed?

Regards

2 Answers

You can easily install angular using these steps-

1> Angular requires Node.js version 8.x or 10.x.,Check node.js version by-

node -v

2>Install node.js,go to nodejs.org.

3>Install npm-

npm install -g @angular/cli

4>Create a project-

ng new my-app

here my-app is project name

5> Would you like to add Angular routing? No

6> Which stylesheet format would you like to use? CSS

7> Go to the workspace folder

cd my-app

8> Launch the server by using the CLI command ng serve, with the --open option.

ng serve --open

9> opens your browser to http://localhost:4200/.

Related