Solved "Cannot find module 'fs/promises'" in Node.js
Briefly

When trying to use the fs module promises syntax in a Node.js application, the error message "Cannot find module 'fs/promises'" usually appears.
Node.js version 10.0.0 introduced the official addition of the fs/promises module. Before this release, there would be a similar error when the promises syntax was used directly with the fs module.
You can run the following command in your terminal to generate the package-lock.json file: npm install
Read at JS-Tutorials
[
add
]
[
|
|
]