Home > database >  Why fs.copyFile is not working in Nodejs terminal?
Why fs.copyFile is not working in Nodejs terminal?

Time:01-19

error screenshot along with code snippet I am trying to copy content from one file to another but the hyperterminal throws error. I have no idea. Could you help?

I have entered the syntax for copyFile but it is not working ?whether it is because of version or something else?

CodePudding user response:

You need to use fs.copyFileSync

  • Related