search

Home  >  Q&A  >  body text

node.js - Linux下怎么替换Nodejs v6.x LTS为Nodejs 0.10版本

平台&版本
系统:CentOS 7.2
Nodejs:v6.9.2 LTS

需求
安装Ghost博客平台,需要nodejs,就默认去nodejs英文官网下载了LTS版本,v6.9.2
,但是在安装的时候却提示需要0.x版本的

下载方式
根据nodejs官网的红帽系linux安装方式安装,地址

安装脚本,第一次装的是6.x版本

卸载v6.x
直接yum remove了

剩余文件也都删除了

安装0.1.0
运行0.1.0的脚本

显示成功,可以使用yum安装

但是安装时就又回下载v6版本

请问怎么完全删除安装脚本,让yum安装0.1.0版本的nodejs

怪我咯怪我咯2871 days ago656

reply all(6)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 15:43:34

    You can also use nvm to install and manage multi-version nodes, the project homepage https://github.com/creationix...

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 15:43:34

    No need to install with yum, just add the decompressed bin path of the downloaded node.js 0.1x to the path.

    reply
    0
  • 黄舟

    黄舟2017-04-17 15:43:34

    It is recommended to use nvm for management. The default source is version 6.x. To install other versions, you must either change the source or directly download the binary installation.

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 15:43:34

    Two steps:

    1. npm i n -g

    2. n 0.10.0

    reply
    0
  • 巴扎黑

    巴扎黑2017-04-17 15:43:34

    First yum remove directly, then delete the source about Node.js, and then install version 0.10.

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 15:43:34

    n is a good thing. . .

    npm i n -g

    reply
    0
  • Cancelreply