Damn! This has been really helpful. I am facing issues installing Moment JS. I used npm install moment, it got added as a dependency in my package.json file but is not working. When I type moment --version, it says "command not found". What am I doing wrong?
when you installed moment js you must import it in any module to start working with it as you installed moment using npm install moment that is why it is available locally. When you use moment --version you are checking it globally that's why you get command not found.