1, View nodejs version
$ Node -v
2, clear the cache nodejs
$ npm cache clean -f
3, upgrade node
1), the installation tool management n nodejs
$ npm install -g n
2), switch installed version
$ n
3), install the official stable version
$ n stable
4), install the specified version
$ n 8.11.3
5), install the latest official version LTS
$ n lts