我想在我的本地机器上将我的节点版本更新为最新版本。我正在使用 Ubuntu 16.04。我目前在使用我所知的可用方法进行更新时遇到了麻烦。请注意,这heroku-cli
是最新的(到目前为止)。
$ check-node-version
node: 8.3.0
npm: 5.4.2
yarn: 1.2.1
以下是其他可能有帮助的重要命令
harman@manchanda: 04:14 pm ~ $ node -v
v8.3.0
harman@manchanda: 04:14 pm ~ $ which node
/usr/local/heroku/bin/node
harman@manchanda: 04:15 pm ~ $ nodejs -v
v8.7.0
harman@manchanda: 04:15 pm ~ $ which nodejs
/usr/bin/nodejs
harman@manchanda: 04:15 pm ~ $ heroku -v
heroku-cli/6.14.34-1fcf80e (linux-x64) node-v8.6.0
harman@manchanda: 04:15 pm ~ $ n
node/6.2.2
node/6.7.0
node/7.0.0
node/7.8.0
node/7.9.0
node/8.4.0
node/8.7.0
让我知道是否需要任何其他信息?