Could not find one of 'package.json' manifest files in the package

In the output window I have the error
Resolving uno dependencies… when switching to a Arduino Mega 2560

MissingPackageManifestError: Could not find one of ‘package.json’ manifest files in the package
How to solve this. I am new to programming and visual studio code