简体   繁体   中英

Why fs.copyFile is not working in Nodejs terminal?

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?

You need to use fs.copyFileSync

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM