Cd /Var/Www/Html/ Error

I am Trying to install angular4 but in the process I type this command:

cd /var/www/html/

As referred by the video but the error showing is this:

bash: cd: /var/www/html/: No such file or directory

2 Answers

/var/www/html is created when you install Apache HTTP server.

You can install Angular without Apache.

Check this out How to install Angular

2

I don't think you need Apache in order to use AngularJS. But I am presuming that whatever video you are following used the Apache Tomcat to serve the angular project.

Angular projects needs to be served by any server in order to get executed, after all its an web application right !! Usually people use node servers to serve the angular application because its easy and quick even new versions of Anuglar has CLI that has this capability in built.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest