Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/ Questions/Error: npm err! cb() never called! – Quick tips
Next
Answered
Jules Caron
  • 30
Jules Caron
Asked: May 12, 20222022-05-12T12:08:46+00:00 2022-05-12T12:08:46+00:00In: javascript

Error: npm err! cb() never called! – Quick tips

  • 30

. Advertisement .

..3..

. Advertisement .

..4..

I am new to javascript and searching the “npm err! cb() never called!” to understand it better. It seems it doesn’t work as expected when I used some suggestions before.
This is the command line I use:

git push heroku

The error I’m getting is below:

Counting objects: 14, done.
 Delta compression using up to 6 threads.
 Compressing objects: 100% (12/12), done.
 Writing objects: 100% (12/12), 1.20 KiB, done.
 Total 12 (delta 8), reused 0 (delta 0)
 
 -----> Node.js app detected
 -----> Resolving engine versions
  Using Node.js version: 0.6.20
  Using npm version: 1.2.12
 -----> Fetching Node.js binaries
 -----> Vendoring node into slug
 -----> Installing dependencies with npm
  npm http GET https://registry.npmjs.org/pg/0.6.15
  npm http GET https://registry.npmjs.org/socket.io
  npm http 200 https://registry.npmjs.org/pg/0.6.15
  npm http GET https://registry.npmjs.org/pg/-/pg-0.6.15.tgz
  npm http 200 https://registry.npmjs.org/socket.io
  npm http GET https://registry.npmjs.org/socket.io/-/socket.io-0.9.13.tgz
  npm http 200 https://registry.npmjs.org/pg/-/pg-0.6.15.tgz
  npm http 200 https://registry.npmjs.org/socket.io/-/socket.io-0.9.13.tgz
  npm http GET https://registry.npmjs.org/socket.io-client/0.9.11
  npm http GET https://registry.npmjs.org/policyfile/0.0.4
  npm http GET https://registry.npmjs.org/base64id/0.1.0
  npm http GET https://registry.npmjs.org/redis/0.7.3
  npm http GET https://registry.npmjs.org/generic-pool/1.0.9
  npm http 200 https://registry.npmjs.org/policyfile/0.0.4
  npm http GET https://registry.npmjs.org/policyfile/-/policyfile-0.0.4.tgz
 
  npm http 200 https://registry.npmjs.org/base64id/0.1.0
  npm http GET https://registry.npmjs.org/base64id/-/base64id-0.1.0.tgz
  npm http 200 https://registry.npmjs.org/generic-pool/1.0.9
  npm http GET https://registry.npmjs.org/generic-pool/-/generic-pool-1.0.9
 .tgz
  npm http 200 https://registry.npmjs.org/socket.io-client/0.9.11
  npm http GET https://registry.npmjs.org/socket.io-client/-/socket.io-clie
 nt-0.9.11.tgz
  npm http 200 https://registry.npmjs.org/redis/0.7.3
  npm http GET https://registry.npmjs.org/redis/-/redis-0.7.3.tgz
  npm http 200 https://registry.npmjs.org/policyfile/-/policyfile-0.0.4.tgz
 
  npm http 200 https://registry.npmjs.org/base64id/-/base64id-0.1.0.tgz
  npm http 200 https://registry.npmjs.org/generic-pool/-/generic-pool-1.0.9
 .tgz
  npm http 200 https://registry.npmjs.org/socket.io-client/-/socket.io-clie
 nt-0.9.11.tgz
  npm http 200 https://registry.npmjs.org/redis/-/redis-0.7.3.tgz
 
  > [email protected] install /tmp/build_36us8733h7kkr/node_modules/pg
  > node-waf configure build || (exit 0)
 
  Checking for program g++ or c++ : /usr/bin/g++
  Checking for program cpp : /usr/bin/cpp
  Checking for program ar : /usr/bin/ar
  Checking for program ranlib : /usr/bin/ranlib
  Checking for g++ : ok
  Checking for node path : not found
  Checking for node prefix : ok /tmp/node-node-nNUw
  Checking for program pg_config : /usr/bin/pg_config
  'configure' finished successfully (0.058s)
  Waf: Entering directory `/tmp/build_36us8733h7kkr/node_modules/pg/build'
  [1/2] cxx: src/binding.cc -> build/Release/src/binding_1.o
  [2/2] cxx_link: build/Release/src/binding_1.o -> build/Release/binding.no
 de
  Waf: Leaving directory `/tmp/build_36us8733h7kkr/node_modules/pg/build'
  'build' finished successfully (0.492s)
  npm http GET https://registry.npmjs.org/uglify-js/1.2.5
  npm http GET https://registry.npmjs.org/ws
  npm http GET https://registry.npmjs.org/xmlhttprequest/1.4.2
  npm http GET https://registry.npmjs.org/active-x-obfuscator/0.0.1
  npm http 200 https://registry.npmjs.org/active-x-obfuscator/0.0.1
  npm http GET https://registry.npmjs.org/active-x-obfuscator/-/active-x-ob
 fuscator-0.0.1.tgz
  npm http 200 https://registry.npmjs.org/uglify-js/1.2.5
  npm http GET https://registry.npmjs.org/uglify-js/-/uglify-js-1.2.5.tgz
  npm http 200 https://registry.npmjs.org/xmlhttprequest/1.4.2
  npm http GET https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1
 .4.2.tgz
  npm http 200 https://registry.npmjs.org/ws
  npm http GET https://registry.npmjs.org/ws/-/ws-0.4.25.tgz
  npm http 200 https://registry.npmjs.org/active-x-obfuscator/-/active-x-ob
 fuscator-0.0.1.tgz
  npm http 200 https://registry.npmjs.org/uglify-js/-/uglify-js-1.2.5.tgz
  npm http 200 https://registry.npmjs.org/xmlhttprequest/-/xmlhttprequest-1
 .4.2.tgz
  npm http 200 https://registry.npmjs.org/ws/-/ws-0.4.25.tgz
  npm http GET https://registry.npmjs.org/zeparser/0.0.5
  npm http GET https://registry.npmjs.org/commander
  npm http GET https://registry.npmjs.org/tinycolor
  npm http GET https://registry.npmjs.org/options
  npm http 200 https://registry.npmjs.org/zeparser/0.0.5
  npm http GET https://registry.npmjs.org/zeparser/-/zeparser-0.0.5.tgz
  npm http 200 https://registry.npmjs.org/options
  npm http GET https://registry.npmjs.org/options/-/options-0.0.3.tgz
  npm http 200 https://registry.npmjs.org/tinycolor
  npm http GET https://registry.npmjs.org/tinycolor/-/tinycolor-0.0.1.tgz
  npm http 200 https://registry.npmjs.org/commander
  npm http GET https://registry.npmjs.org/commander/-/commander-0.6.1.tgz
  npm http 200 https://registry.npmjs.org/zeparser/-/zeparser-0.0.5.tgz
  npm http 200 https://registry.npmjs.org/options/-/options-0.0.3.tgz
  npm http 200 https://registry.npmjs.org/tinycolor/-/tinycolor-0.0.1.tgz
  npm http 200 https://registry.npmjs.org/commander/-/commander-0.6.1.tgz
 
  > [email protected] install /tmp/build_36us8733h7kkr/node_modules/socket.io/node_
 modules/socket.io-client/node_modules/ws
  > (node-gyp rebuild 2> builderror.log) || (exit 0)
 
  make: Entering directory `/tmp/build_36us8733h7kkr/node_modules/socket.io
 /node_modules/socket.io-client/node_modules/ws/build'
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node
  SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
  COPY Release/bufferutil.node
  CXX(target) Release/obj.target/validation/src/validation.o
  SOLINK_MODULE(target) Release/obj.target/validation.node
  SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
  COPY Release/validation.node
  make: Leaving directory `/tmp/build_36us8733h7kkr/node_modules/socket.io/
 node_modules/socket.io-client/node_modules/ws/build'
  npm ERR! cb() never called!
  npm ERR! not ok code undefined
  npm ERR! cb() never called!
  npm ERR! not ok code 1
  ! Failed to install --production dependencies with npm
  ! Heroku push rejected, failed to compile Node.js app
 
 To [email protected]:still-chamber-1286.git
  ! [remote rejected] master -> master (pre-receive hook declined)
 error: failed to push some refs to '[email protected]:still-chamber-1286.git'
npm ERR! cb() never called!
  npm ERR! not ok code undefined
  npm ERR! cb() never called!
  npm ERR! not ok code 1
  ! Failed to install --production dependencies with npm
  ! Heroku push rejected, failed to compile Node.js app
 
  To [email protected]:still-chamber-1286.git
  ! [remote rejected] master -> master (pre-receive hook declined)
  error: failed to push some refs to '[email protected]:still-chamber-1286.git'

Please give me the solution for this issue.

cb() never called
  • 2 2 Answers
  • 109 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

2 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    dhtutoria Expert
    2022-06-02T03:33:12+00:00Added an answer on June 2, 2022 at 3:33 am

    The cause: I think this error happens perhaps because the engine you were using for Node was outdated.

    The solution: These steps below will help you solve this error:

    1. Clear your npm cache: sudo npm cache clean -f
    2. Install the latest version of the Node helper: sudo npm install -g n
    3. Tell the helper (n) to install the latest stable version of Node: sudo n stable

    You will be up to date if you get a progress display  

    • 5
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. Rose Caron
    2022-05-26T03:56:07+00:00Added an answer on May 26, 2022 at 3:56 am

    Try this first if you have npm Version 5 or higher

    $ sudo npm cache verify

    Otherwise:

    $ sudo npm cache clean

    My node version and the npm version are:

    $ node -v
    v0.10.0
    
    $ npm -v
    1.2.14


    https://docs.npmjs.com/cli/cache

    • 12
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.