1.first you need to have node js installed on your system(go to nodejs.org) and node package manager npm.
2.then go to the root folder and open in cmd or terminal and then write npm install,btw it will install all neccery node_modules in the root folder.
- then after succesfully installation of node_modules then write npm init and hit enter.
:)