npm ERR! cb.apply is not a function

Getting the error  "npm ERR! cb.apply is not a function " when trying to install node modules to get  browser based ssh client working in Ezeelogin.

[root@jumpbox webssh]#  npm install --production

npm ERR! Linux 3.10.0-1127.18.2.el7.x86_64

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--production"

npm ERR! node v14.11.0

npm ERR! npm v4.3.0


npm ERR! cb.apply is not a function

npm ERR!

npm ERR! If you need help, you may report this error at:

npm ERR!     <>


npm ERR! Please include the following file with any support request:

npm ERR!     /root/.npm/_logs/2020-10-07T11_22_39_029Z-debug.log

[root@jumpbox webssh]# 



This is a conflict between npm <= 5 and newer versions of Node 12 and 14. The solution is to upgrade npm to >= 6, which is installed with Node 12 and Node 14 by default.

More details are described in this GitHub issue:

Take the following steps:

  1. Make sure that you're running npm >= 6 on your local machine. (This comes by default with Node 12 and 14.)
  2. Run npm install and check in any changes to the package-lock.json.
  3. Remove the "npm" key from the "engines" in package.json. The buildpack will simply use the version of npm that comes with your set version of Node. For example, both Node 12.18.3 and 14.6.0 are installed with npm 6.14.6. 
5 (1)
Article Rating (1 Votes)
Rate this article
    Attached Files
    There are no attachments for this article.
    Related Articles RSS Feed
    How to reset Ezeelogin admin user password or security code
    Viewed 7017 times since Thu, Jun 15, 2017
    Error occured. Please contact the administrator - Permission Denied - creation failed
    Viewed 2291 times since Thu, Jun 15, 2017
    Internal browser error: Failed to launch the browser process!
    Viewed 377 times since Wed, Nov 11, 2020
    Blank page when accessing Ezeelogin web panel or GUI
    Viewed 3527 times since Wed, Jun 14, 2017
    Node process fails to start with Error: Cannot find module ’express’
    Viewed 988 times since Wed, Sep 16, 2020
    Configure Automatic su or sudo
    Viewed 5768 times since Thu, Jun 15, 2017
    502 on login with nginx
    Viewed 4898 times since Wed, Jun 14, 2017
    Unable to connect to your database server using the provided settings.
    Viewed 9453 times since Thu, Jun 15, 2017
    Viewed 5619 times since Wed, Jun 14, 2017
    npm install error - unable to get local issuer certificate
    Viewed 820 times since Wed, Sep 23, 2020