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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like