Page MenuHomePhorge

Node.js and npm conflict
Open, 40Public

Description

I can't install npm in Kolab:Winterfell.

Resolving Dependencies
--> Running transaction check
---> Package npm.x86_64 1:3.10.8-1.6.9.1.1.el7 will be installed
--> Processing Dependency: nodejs = 1:6.9.1-1.el7 for package: 1:npm-3.10.8-1.6.9.1.1.el7.x86_64
--> Finished Dependency Resolution
Error: Package: 1:npm-3.10.8-1.6.9.1.1.el7.x86_64 (epel)
           Requires: nodejs = 1:6.9.1-1.el7
           Installed: nodejs-0.12.8-2.7.el7.kolab_wf.x86_64 (@Kolab_Winterfell)
               nodejs = 0.12.8-2.7.el7.kolab_wf

Details

Ticket Type
Task

Related Objects

Event Timeline

This bug also occurs in Kolab 16. Why does Kolab package Node JS and don't use the official Node JS packages?

As a workaround I used nvm to install an appropriate version for npm:

export NODE_VERSION=0.12.8 && \
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash && \
    export NVM_DIR="/root/.nvm" && \
    source $NVM_DIR/nvm.sh && \
    nvm install v$NODE_VERSION && \
    ln -s /root/.nvm/versions/node/v0.12.8/bin/npm /usr/bin/npm