npm init npm install express --save //Here --save option will update you package.json file with the package and its version.