[root@~]# sudo n stable
install : node-v9.0.0
mkdir : /usr/local/n/versions/node/9.0.0
fetch : https://nodejs.org/dist/v9.0.0/node-v9.0.0-linux-x64.tar.gz
######################################################################## 100.0%
installed : v6.11.5
the install version and installed version different. run node -v still got v6.11, cant update nodejs, whats the problem?
Version 6 probably appears in your $PATH before v9. The node binary that it first finds will be the one used.
Also, there might be a node sym-link that points to the wrong version. Use which node
to see where the bin is.
我建议使用nvm来管理Node版本https://github.com/creationix/nvm这使它更简单
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.