Main process not written:
"main": "background.js",,Look at the information behind the error: cannot find module. It said that the file could not be found. Did you pack it incorrectly or miss the file?
May need to see your main JS content to know the problem