The error message is as follows

NPM WARN Deprecated [email protected]: The NPM ERR! code 1 npm ERR! path E:\faker-passport\node_modules\utf-8-validate npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node-gyp rebuildCopy the code

The installation fails due to a domestic taobao source. Run the following command to open the configuration.

npm config edit
Copy the code

Delete taobao source, reinstall, problem solved