Results 1 to 5 of 5

Thread: Problems installing nodejs

  1. #1

    Default Problems installing nodejs

    When you install nodejs, the npm package is supposed to be included but this isn't happening for me. I've tried installing npm separately but zypper prompts me, saying:

    Problem: nothing provides npm(semver) < 4.1 needed by npm-2.1.3-9.1.noarch
    Solution 1: do not install npm-2.1.3-9.1.noarch
    Solution 2: break npm-2.1.3-9.1.noarch by ignoring some of its dependencies


    Choose from above solutions by number or cancel [1/2/c] (c):

    I cancel.. but I also installed whatever semver is:

    i | nodejs-semver | Semantic version parser | package

    I still get the same prompt when installing npm. Any ideas why npm is not installing with nodejs?

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    12,012
    Blog Entries
    2

    Default Re: Problems installing nodejs

    npm is included in nodejs
    You can verify by examining the contents of the package
    Code:
    rpm -ql nodejs
    You should find
    Code:
    /usr/bin/npm
    If I were to guess, you're not running npm as root.
    I don't know if the path is automatically found using sudo and it almost certainly isn't executable without elevated permissions.

    TSU

  3. #3

    Default Re: Problems installing nodejs

    Quote Originally Posted by tsu2 View Post
    npm is included in nodejs
    You can verify by examining the contents of the package
    Code:
    rpm -ql nodejs
    You should find
    Code:
    /usr/bin/npm
    If I were to guess, you're not running npm as root.
    I don't know if the path is automatically found using sudo and it almost certainly isn't executable without elevated permissions.

    TSU
    Hi, this is what I get:

    > rpm -ql nodejs
    /usr/bin/node
    /usr/lib/node_modules
    /usr/share/doc/packages/nodejs
    /usr/share/doc/packages/nodejs/AUTHORS
    /usr/share/doc/packages/nodejs/CONTRIBUTING.md
    /usr/share/doc/packages/nodejs/ChangeLog
    /usr/share/doc/packages/nodejs/LICENSE
    /usr/share/doc/packages/nodejs/README.md
    /usr/share/man/man1/node.1.gz

    with zypper search, using "i" in the 1st column as being installed, here are the packages zypper installed when I got nodejs.

    i | nodejs | Evented I/O for V8 JavaScript | package
    i | nodejs-devel | Files needed for development of NodeJS platforms | package

    I didn't even see npm show up, I had to type 'zypper search npm' for it to show. "zypper search nodejs" brings up these npm packages:

    | nodejs-npm-cache-filename | Return NPM cache folder | package
    | nodejs-npm-cache-filename | Return NPM cache folder | srcpackage
    | nodejs-npm-install-checks | Install checks for NPM | package
    | nodejs-npm-install-checks | Install checks for NPM | srcpackage
    | nodejs-npm-package-arg | Parse things that can be arguments to `npm install` | package
    | nodejs-npm-package-arg | Parse things that can be arguments to `npm install` | srcpackage
    | nodejs-npm-registry-client | Node.js registry module | package
    | nodejs-npm-registry-client | Node.js registry module | srcpackage
    | nodejs-npm-user-validate | User validations for npm | package
    | nodejs-npm-user-validate | User validations for npm | srcpackage
    | nodejs-npmconf | Config tool used by NPM | package
    | nodejs-npmconf | Config tool used by NPM | srcpackage
    | nodejs-npmlog | NPM log utility | package
    | nodejs-npmlog | NPM log utility | srcpackage

    'zypper search npm' shows npm

    | npm | Node.js Package Manager | package
    | npm | Node.js Package Manager | srcpackage

    but remember, this fails when I try to install.

  4. #4
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,022

    Default Re: Problems installing nodejs

    Post the output of;
    cat /etc/os-release
    zypper sl -d

    And CODE wrap the output
    Code:
    Like this
    You didn't mention which repositories you added, what distribution version you were running and so forth.
    .: miuku #suse @ irc.freenode.net
    :: miuku@opensuse.org

    .: h​ttps://download.opensuse.org/repositories/home:/Miuku/

  5. #5

    Default Re: Problems installing nodejs

    Quote Originally Posted by Miuku View Post
    Post the output of;
    cat /etc/os-release
    zypper sl -d

    And CODE wrap the output
    Code:
    Like this
    You didn't mention which repositories you added, what distribution version you were running and so forth.
    Sorry about that. Here's the output that also has the info.

    > cat /etc/os-release
    Code:
    NAME=openSUSE
    VERSION="13.1 (Bottle)"
    VERSION_ID="13.1"
    PRETTY_NAME="openSUSE 13.1 (Bottle) (x86_64)"
    ID=opensuse
    ANSI_COLOR="0;32"
    CPE_NAME="cpe:/o:opensuse:opensuse:13.1"
    BUG_REPORT_URL="https://bugs.opensuse.org"
    HOME_URL="https://opensuse.org/"
    ID_LIKE="suse"

    > zypper sl -d
    Code:
    #  | Alias                          | Name                                                                        | Enabled | Refresh | Priority | Type   | URI                                                                                       
    ---+--------------------------------+-----------------------------------------------------------------------------+---------+---------+----------+--------+-------------------------------------------------------------------------------------------
    1  | Node.js                        | Node.js                                                                     | Yes     | No      |   99     | rpm-md | http://download.opensuse.org/reposit...openSUSE_13.1/         
    2  | Packman Repository             | Packman Repository                                                          | Yes     | Yes     |   99     | rpm-md | http://ftp.gwdg.de/pub/linux/packman...openSUSE_13.1/                                  
    3  | devel_languages_python_Factory | Development versions of Python interpreters and other stuff (openSUSE_13.1) | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/reposit...openSUSE_13.1/
    4  | libdvdcss repository           | libdvdcss repository                                                        | Yes     | Yes     |   99     | rpm-md | http://opensuse-guide.org/repo/13.1/                                                      
    5  | openSUSE-13.1-1.10             | openSUSE-13.1-1.10                                                          | Yes     | No      |   99     | yast2  | cd:///?devices=/dev/disk/by-id/ata-hp_DVD-RAM_UJ8D1_1347TP098070E0H8H,/dev/sr0            
    6  | repo-debug                     | openSUSE-13.1-Debug                                                         | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/d...13.1/repo/oss/                            
    7  | repo-debug-update              | openSUSE-13.1-Update-Debug                                                  | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.1/                                           
    8  | repo-debug-update-non-oss      | openSUSE-13.1-Update-Debug-Non-Oss                                          | No      | Yes     |   99     | NONE   | http://download.opensuse.org/debug/update/13.1-non-oss/                                   
    9  | repo-non-oss                   | openSUSE-13.1-Non-Oss                                                       | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distrib.../repo/non-oss/                              
    10 | repo-oss                       | openSUSE-13.1-Oss                                                           | Yes     | Yes     |   99     | yast2  | http://download.opensuse.org/distrib...13.1/repo/oss/                                  
    11 | repo-source                    | openSUSE-13.1-Source                                                        | No      | Yes     |   99     | NONE   | http://download.opensuse.org/source/...13.1/repo/oss/                           
    12 | repo-update                    | openSUSE-13.1-Update                                                        | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.1/                                                 
    13 | repo-update-non-oss            | openSUSE-13.1-Update-Non-Oss                                                | Yes     | Yes     |   99     | rpm-md | http://download.opensuse.org/update/13.1-non-oss/                                         
    14 | server_database                | Databases (openSUSE_13.1)                                                   | Yes     | No      |   99     | rpm-md | http://download.opensuse.org/reposit...openSUSE_13.1/
    [/code]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •