Here are the steps I have followed. Link (https://docs.microsoft.com/en-us/office/dev/add-ins/tutorials/outlook-tutorial)
Installed the yo generator using np