执行s -v报错
解决了,升级一下node的版本就可以了
v6.17.1
[root@iZuf61ufxe31hylxifxl3oZ node]# npm install -g n
/usr/bin/n -> /usr/lib/node_modules/n/bin/n
/usr/lib
└── n@7.3.1
[root@iZuf61ufxe31hylxifxl3oZ node]# n latest
installing : node-v16.6.1
mkdir : /usr/local/n/versions/node/16.6.1
fetch : https://nodejs.org/dist/v16.6.1/node-v16.6.1-linux-x64.tar.xz
installed : v16.6.1 (with npm 7.20.3)
Note: the node command changed location and the old location may be remembered in your current shell.
old : /usr/bin/node
new : /usr/local/bin/node
To reset the command location hash either start a new shell, or execute PATH='$PATH'
[root@iZuf61ufxe31hylxifxl3oZ node]#
[root@iZuf61ufxe31hylxifxl3oZ node]# PATH='$PATH'
[root@iZuf61ufxe31hylxifxl3oZ node]#
[root@iZuf61ufxe31hylxifxl3oZ node]# node -v
v16.6.1
[root@iZuf61ufxe31hylxifxl3oZ node]# s -v
local version : 2.0.72
☁️ remote version : 2.0.72
[root@iZuf61ufxe31hylxifxl3oZ node]#
赞0
踩0