the hole is finally filled.
solve the problem: check the default global installation path npm config get prefix to enter the directory to delete the npm folder. Then initialize it in your project folder and install the dependencies and it will work properly.
I hope I can help my friends who step into this hole like me.