First create a folder: Then CD into that folder through CMD Then do the follow in command-line npm init npm…