node - fs.writeFile creates a blank file

后端 未结 5 1574
北荒
北荒 2020-12-19 05:03

I\'m trying to write a new file inside a grunt-search callback.

The process takes and object, traverses through it for some data, creates a new array, and then write

5条回答
  •  借酒劲吻你
    2020-12-19 05:21

    Try to find out if your code has

    process.exit()

    For some reason, I have one temperately for testing only. If you do, comment out this one and you will be good to go. My version is v8.6.0.

提交回复
热议问题