Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"npm run start" fail, TypeError [ERR_INVALID_CALLBACK]: Callback must be a function #468

Closed
wangyeming opened this issue Jan 3, 2018 · 4 comments
Assignees
Milestone

Comments

@wangyeming
Copy link

Configuration

  • Operating system with version :
    mac os High Sierra
  • Node version :
    v9.3.0
  • Hexo version :
    3.4.4
  • Hexo-cli version :
    1.0.4
  • Tranquilpeak version :
    1.11.0

original

Actual behavior

npm install result: success
bower install result: success
npm run start result : fail

> hexo-theme-tranquilpeak@1.11.0 start /Users/wangyeming/workshop/my/wangyeming-blog-source/themes/tranquilpeak
> grunt default

Loading "Gruntfile.js" tasks...ERROR
>> TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
Warning: Task "default" not found. Use --force to continue.
Aborted due to warnings.
npm ERR! code ELIFECYCLE
npm ERR! errno 3
npm ERR! hexo-theme-tranquilpeak@1.11.0 start: `grunt default`
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the hexo-theme-tranquilpeak@1.11.0 start 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!     /Users/wangyeming/.npm/_logs/2018-01-03T06_32_37_919Z-debug.log

Expected behavior

build success

Steps to reproduce the behavior

@sskim91
Copy link

sskim91 commented Jan 11, 2018

I have same error.. :(

@LouisBarranqueiro LouisBarranqueiro self-assigned this Jan 11, 2018
@berniechiu
Copy link

berniechiu commented Jan 16, 2018

@wangyeming, @sskim91
I use node stable version and reinstall grunt works fine afterwards, hope if this helps

@sskim91
Copy link

sskim91 commented Jan 17, 2018

@berniechiu
Thank you!
I reinstall node stable version it works fine!

@LouisBarranqueiro
Copy link
Owner

👋 guys, I'm going to update dependencies, so users will use local grunt instead of global grunt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants