'How to install angular project dependencies correctly

So every time I clone an angular project that has an older versions without node_modules folder and after that typing npm install to install all dependencies needed I get a lot of warnings and errors about versions.

This is what I get :

enter image description here

enter image description here

enter image description here

This is angular project version that I cloned:

enter image description here

This is my angularCLI version:

enter image description here

So my question, is there a way that I can clone any project that has older versions and install it's dependencies corretly without any error ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source