Announcement

Collapse
No announcement yet.

"linux-x64-64-glibc exists" error while installing fibers package via Nodejs npm

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • "linux-x64-64-glibc exists" error while installing fibers package via Nodejs npm

    I have installed nodejs on my cPanel Cloudlinux server.
    I want to install Nuxt.js package which the "fibers" is its dependency.
    When the NPM reaches to install this package, it returns error:

    Code:
    > fibers@4.0.2 install /home/mydomain/nodevenv/nuxt/10/lib/node_modules/fibers
    
    > node build.js || nodejs build.js
    
    `linux-x64-64-glibc` exists; testing
    
    Problem with the binary; manual build incoming
    
    node[7360]: pthread_create: Resource temporarily unavailable
    
    /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/npm-lifecycle/node-gyp-bin/node-gyp: line 6:  7360 Aborted                 (core dumped) "$npm_config_node_gyp" "$@"
    
    node-gyp exited with code: 134
    
    Please make sure you are using a supported platform and node version. If you
    
    would like to compile fibers on this machine please make sure you have setup your
    
    build environment--
    
    Windows + OS X instructions here: [URL]https://github.com/nodejs/node-gyp[/URL]
    
    Ubuntu users please run: `sudo apt-get install g++ build-essential`
    
    RHEL users please run: `yum install gcc-c++` and `yum groupinstall Development Tools`
    
    Alpine users please run: `sudo apk add python make g++`
    
    sh: nodejs: command not found
    
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-pre-gyp@0.14.0 (node_modules/watchpack/node_modules/fsevents/node_modules/node-pre-gyp):
    
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: EMFILE: too many open files, open /opt/alt/alt-nodejs10/root/usr/lib/node_modules/npm/node_modules.bundled/pacote/lib/fetchers/version.js
    
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.11 (node_modules/watchpack/node_modules/fsevents):
    
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
    
    npm ERR! code ELIFECYCLE
    
    npm ERR! syscall spawn
    
    npm ERR! file sh
    
    npm ERR! errno ENOENT
    
    npm ERR! fibers@4.0.2 install: `node build.js || nodejs build.js`
    
    npm ERR! spawn ENOENT
    
    npm ERR!
    
    npm ERR! Failed at the fibers@4.0.2 install script.
    
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    
    npm ERR!     /home/mydomain/.npm/_logs/2019-12-22T08_39_07_720Z-debug.log
    I also tried to install fibers Individually by running "npm install fibers", but it returns the same error.

    So whats the problem and what should I do ?
    Regards

  • #2
    Hello Simon,
    Thank you for reaching out! Can you open a support ticket https://cloudlinux.zendesk.com/hc/en-us/requests/new so we can take a closer look at your system? You can post the ticket number here and well link this thread to it.
    Thank you.

    Comment


    • #3
      Hi Simon, Did you got an workaround I am also facing same issue.

      Comment


      • #4
        > Hi Simon, Did you got an workaround I am also facing same issue.

        I found that wen I run commands as root, no problem appears, for example:

        Code:
        [root@cpanel ~]# source /home/username/nodevenv/myapp/10/bin/activate && cd /home/username/myapp
        
        [root@cpanel myapp]# npm install fibers
        
        successfully installed
        but when I run command as user, the above problem appears:

        Code:
        [username@cpanel ~]# source /home/username/nodevenv/myapp/10/bin/activate && cd /home/username/myapp
        
        [username@cpanel myapp]# npm install fibers
        
        failed
        If you faced problem again with root, run these commands as root and test:

        Code:
        [root@cpanel ~]# yum install -y gcc-c++ make
        
        [root@cpanel ~]# yum groupinstall "Development Tools"
        
        [root@cpanel ~]# yum claen all
        
        [root@cpanel ~]# yum makecache

        Comment


        • #5
          Hello Simon,
          Thanks for following up!
          If you have any other questions, feel free to ask here.

          Comment

          Working...
          X