Thank you everyone, I found a solution. Delete npmrc file. (Note: It is not the npmrc file under the npm module in the nodejs installation directory, but the .npmrc file under C:Users{Account}....)
Do you have a win system? ? If yes, check if you use administrator rights when installing npm packages under win system This is similar to the need to enter sudo when installing globally on mac sudo npm install webpack -g
Thank you everyone, I found a solution. Delete npmrc file. (Note: It is not the npmrc file under the npm module in the nodejs installation directory, but the .npmrc file under C:Users{Account}....)
Don’t have administrator rights? The picture is too small to see clearly
Do you have a win system? ? If yes, check if you use administrator rights when installing npm packages under win system
This is similar to the need to enter sudo when installing globally on mac
sudo npm install webpack -g