
CodePudding user response:
Reason: the node version is too low cause;Solution: update the node version: v8.11.2 & gt;> V12.19.0;
Steps:
1. The node - v (see the current version of the node)
2. Sudo NPM cache clean - f (carriage return after the need to enter a computer login password)
3. The sudo NPM install - g n (n is the node version management tool)
4. Sudo n stable (update to the latest stable version of node)
5. Node - v (see the updated version of the node)
In step 4, met the following problems, probably because the network VPN cause, the switch to the mobile hotspot, to perform a success
QC: $sudo Downloads QC n stable
Curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to nodejs.org: 443
Error: failed to download version index (https://nodejs.org/dist/index.tab)
