--spider Only check URL existence: $? is 0 if exists -c Continue retrieval of aborted transfer -q Quiet -P DIR Save to DIR (default .) -S Show server response -T SEC Network read timeout is SEC seconds -O FILE Save to FILE ('-'for stdout) -U STR Use STR for User-Agent header -Y on/off Use proxy Binary download from https://nodejs.org/dist/v12.13.0/node-v12.13.0-linux-x64.tar.gz failed, trying source. grep: /home/rocxer/.nvm/.cache/bin/node-v12.13.0-linux-x64/node-v12.13.0-linux-x64.tar.gz: No such file or directory Provided file to checksum does not exist. Binary download failed, trying source. Downloading https://nodejs.org/dist/v12.13.0/node-v12.13.0.tar.gz... wget: unrecognized option: progress=bar BusyBox v1.30.1 (2019-10-26 11:23:07 UTC) multi-call binary.
--spider Only check URL existence: $? is 0 if exists -c Continue retrieval of aborted transfer -q Quiet -P DIR Save to DIR (default .) -S Show server response -T SEC Network read timeout is SEC seconds -O FILE Save to FILE ('-'for stdout) -U STR Use STR for User-Agent header -Y on/off Use proxy Binary download from https://nodejs.org/dist/v12.13.0/node-v12.13.0.tar.gz failed, trying source. grep: /home/rocxer/.nvm/.cache/src/node-v12.13.0/node-v12.13.0.tar.gz: No such file or directory Provided file to checksum does not exist.
$nvm install 12.13 Downloading and installing node v12.13.0... Downloading https://nodejs.org/dist/v12.13.0/node-v12.13.0-linux-x64.tar.gz... --2019-11-14 09:19:33-- https://nodejs.org/dist/v12.13.0/node-v12.13.0-linux-x64.tar.gz Resolving nodejs.org... 104.20.23.46, 104.20.22.46, 2606:4700:10::6814:172e, ... Connecting to nodejs.org|104.20.23.46|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 21674628 (20M) [application/gzip] Saving to: '/home/rocxer/.nvm/.cache/bin/node-v12.13.0-linux-x64/node-v12.13.0-linux-x64.tar.gz'
/bin/node-v12.13.0-linux-x64/ 32%[==> ] 6.70M 616KB/s eta 22s
安装完成后
最终一直提示
1 2 3 4 5 6
$ nvm is not compatible with the npm config "prefix" option: currently set to "/home/rocxer/npm" Run `nvm use --delete-prefix v12.13.0` to unset it. $nvm use --delete-prefix v12.13.0 Now using node v12.13.0 (npm v6.12.0) #虽然这样提示了,但仍不能使用