search

Home  >  Q&A  >  body text

node.js - node和nodejs有区别吗?

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

PHP中文网PHP中文网2784 days ago507

reply all(6)I'll reply

  • 伊谢尔伦

    伊谢尔伦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

    reply
    0
  • PHP中文网

    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

    reply
    0
  • PHPz

    PHPz2017-04-17 15:49:42

    This... is only node -v right

    node and nodejs should be the same

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 15:49:42

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

    reply
    0
  • 阿神

    阿神2017-04-17 15:49:42

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

    reply
    0
  • 怪我咯

    怪我咯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

    reply
    0
  • Cancelreply