Warning: Do not attempt before reading comments below & backup package-lock.json.
Install the latest npm with npm install -g npm
Run npm init
and respond to the questions.
The above command will generate a package.json
and include the existing packages listed in package-lock.json