npm install --save qrcode
Reason: The npm version problem caused a download conflict, which interrupted the installation
Solution:
Add --legacy-peer-deps after the command you want to execute
For example: npm install --save qrcode --legacy-peer-deps
The --legacy-peer-deps flag was introduced in v7 to bypass the automatic installation of peerDependency, it will tell NPM to ignore the same modules but different versions of the modules introduced in the project and continue to install, Ensure the coexistence of different versions of modules used by each imported dependency
After executing the command, the dependencies are successfully installed.