ERROR command failed: npm install --loglevel error --legacy-peer-deps

Perfect solution to ERROR command failed: npm install --loglevel error --legacy-peer-deps

Insert image description here

When a problem occurs, the first step is to find the source of the problem.
Check the log information. If permission appears, try the first method: run cmd as an administrator and rebuild the project.
The second method is to uninstall npm, install a lower version of npm (i.e. nodejs), and then rebuild.

Guess you like

Origin blog.csdn.net/liangxiaoyan0426/article/details/130090509