我想说的是官网nodejs.org最新版本是6.9.2,我本地敲nodejs -v显示v0.10.25,很多教程说要输入node,有的又说是nodejs,实在搞不明白了,还有就是版本怎么会相差这么大?
伊谢尔伦2017-04-17 15:49:42
For version issues, you can refer to this link: https://cnodejs.org/topic/576...; how to start node, you can just try this, it cannot be regarded as a problem that worries you
PHP中文网2017-04-17 15:49:42
On some distributions, node
命令被其他程序占用了,所以启动nodejs
的命令换成了nodejs
而不是node
Looks like I remembered the wrong release version, so I deleted part of the answer
阿神2017-04-17 15:49:42
Install the latest version, it’s just awkward if you use this old version
怪我咯2017-04-17 15:49:42
This involves setting environment variables. You can set Node to point to the latest version and nodejs to point to the old version. You can also use nvm to switch versions freely
npm -g install nvm
nvm install 7
nvm use 7