npm ERR! code EINTEGRITY error solution, the personal test is effective!

 The above is the error reported by running npm install to install dependencies

Solution:

1. Delete the project package-lock.json file

2. Execute the command to clear the cache

        npm cache clean --force        

        There will be a warning on the execution line, just ignore it.

3. Finally, execute npm installthe installation and find that it can be installed normally. At this time, you will find a newly generated package.lock.json file.

Guess you like

Origin blog.csdn.net/qq_43532275/article/details/128300158