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

throw new ERR_INVALID_CALLBACK(); #17

Open
Biteagle09 opened this issue Nov 30, 2019 · 1 comment
Open

throw new ERR_INVALID_CALLBACK(); #17

Biteagle09 opened this issue Nov 30, 2019 · 1 comment

Comments

@Biteagle09
Copy link

你好,在使用您的博客框架Papery时,我按照您的教程进行到“ papery create ”这一步时,CMD窗口里报错为

fs.js:128
throw new ERR_INVALID_CALLBACK();
^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:128:9)
at Object.exists (fs.js:196:3)
at Object.copySync (E:\nodejs\npms\node_global\node_modules\papery\node_modules\fs-extra\lib\copy.js:62:23)
at Object.exports.run (E:\nodejs\npms\node_global\node_modules\papery\bin\create_runner.js:37:9)
at Object. (E:\nodejs\npms\node_global\node_modules\papery\bin\papery.js:71:14)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
}

我百度搜索到的原因是Node.js的版本问题,即Node V10 以上 fs.write 的callback 是必须的。
附上我的参考链接

@YX-XiaoBai
Copy link

你好,在使用您的博客框架Papery时,我按照您的教程进行到“ papery create ”这一步时,CMD窗口里报错为

fs.js:128
throw new ERR_INVALID_CALLBACK();
^

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at maybeCallback (fs.js:128:9)
at Object.exists (fs.js:196:3)
at Object.copySync (E:\nodejs\npms\node_global\node_modules\papery\node_modules\fs-extra\lib\copy.js:62:23)
at Object.exports.run (E:\nodejs\npms\node_global\node_modules\papery\bin\create_runner.js:37:9)
at Object. (E:\nodejs\npms\node_global\node_modules\papery\bin\papery.js:71:14)
at Module._compile (internal/modules/cjs/loader.js:776:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
}

我百度搜索到的原因是Node.js的版本问题,即Node V10 以上 fs.write 的callback 是必须的。
附上我的参考链接

+1

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

No branches or pull requests

2 participants