cnpm installation failed, personal summary reasons:
1. Node.js version issue: I personally think this is very important. The official said that the current v12 is a stable version, but when I use v12, various inexplicable errors will be reported. If you have various problems during use, personally It is recommended to completely uninstall Node.js and download a lower version of Node.js, and it is recommended to use the V10 version;
Forward link: https://blog.csdn.net/qq_43012792/article/details/108973025