Tag Archives: npm i

[Solved] NPM i error: Legacy peer DEPs (Version Problem)

The problem is shown in the figure (the main reason for this problem is that the local NPM version is too high)

The solution is to downgrade NPM

npx -p npm@6 npm i --legacy-peer-deps

After running, a package-lock.json file will be generated. The main function of this file is to lock the version number of the installation package to ensure that other members of the project have consistent dependencies during NPM install
after the above steps, NPM I can be installed successfully