I see. You grabbed the .zip instead of using git clone. If you are inside the unzipped directory and run
npm i
it will install moment into a sub-directory
npm is node’s distributed package management system.
but I feel ya on the new stuff. I also did Java for 20+ years. but made the transition to mostly JS about 6 years ago.