Should I install node.js on Ubuntu using package manager or from source?

后端 未结 3 1791
北恋
北恋 2021-02-02 10:22

Does anyone know if installing the latest build from source is a risky route to take? Should i just stick with the package manager?

3条回答
  •  忘掉有多难
    2021-02-02 11:00

    Although I live in an .rpm, and not .deb realm, fpm can do both (needs Ruby installed). I have been able to package node.js from the latest stable source without any major difficulties. In your case, the following scenario may help:

    ./configure --prefix=/usr
    make
    mkdir -p /tmp/nodejs
    make install DESTDIR=/tmp/nodejs
    fpm -s dir -t deb -n nodejs -v 0.8.15 -p nodejs-0.8.15.deb -C /tmp/nodejs usr
    

提交回复
热议问题