After you install the node packages or modules, if you couldn’t find package.json file on your directory you can use the below commands to get back the file.
npm --version
npm install express
npm init -y
After you install the node packages or modules, if you couldn’t find package.json file on your directory you can use the below commands to get back the file.
npm --version
npm install express
npm init -y