尝试最新稳定版 node
See Details
目录
如果你在使用不受支持或不稳定的 node 版本(奇数版本,例如 0.7.x、0.9.x、0.11.x)时遇到问题,很可能只需使用 LTS 版本的 node。
¥If you're experiencing issues while using a version of node which is unsupported or unstable (odd numbered versions e.g. 0.7.x, 0.9.x, 0.11.x), it's very possible your issue will be fixed by simply using the LTS version of node.
查看正在运行的 node 版本
¥See what version of node you're running:
node -v
在 Linux 上更新 node
¥Updating node on Linux
对于某些 Linux 发行版(Debian/Ubuntu 和 RedHat/CentOS),发行版提供的最新 node 版本可能落后于稳定版本。这是获取最新 node 的 来自 NodeSource 的指令。
¥For some Linux distributions (Debian/Ubuntu and RedHat/CentOS), the latest node version provided by the distribution may lag behind the stable version. Here are instructions from NodeSource on getting the latest node.