I noticed a similar warning today . The issue went off after I deleted package.json file.I had used yarn and npm interchangeable until now in my side project.
‘npm install’ creates package-lock.json and
‘yarn install’ generates yarn.lock . Normally you stick to either one of the package managers in your project