how to fix this error TypeError [ERR_INVALID_CALLBACK]: Callback must be a function

前端 未结 6 1815
无人及你
无人及你 2021-01-03 18:10

I am a beginner to the nodejs. When I type the below, the code error occurs like this:

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-03 18:22

    you also use like this

    var file2 =  fs.readFileSync("./Public/n2.jpeg")
    

提交回复
热议问题