node.js - node和nodejs有区别吗?
PHP中文网
PHP中文网 2017-04-17 15:47:42
0
6
532

我想说的是官网nodejs.org最新版本是6.9.2,我本地敲nodejs -v显示v0.10.25,很多教程说要输入node,有的又说是nodejs,实在搞不明白了,还有就是版本怎么会相差这么大?

PHP中文网
PHP中文网

认证0级讲师

reply all(6)
伊谢尔伦

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

Ty80

On some distributions, node命令被其他程序占用了,所以启动nodejs的命令换成了nodejs而不是node


Looks like I remembered the wrong release version, so I deleted part of the answer

PHPzhong

This... is only node -v right

node and nodejs should be the same

洪涛

No difference. ,. ,. ,. ,. ,. ,. ,

阿神

Install the latest version, it’s just awkward if you use this old version

刘奇

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template