Getting issues while creating electronjs auto-launch app

npm init
npm install electron-prebuilt --save-dev
Create index.js
npm install electron-packager --save-dev
npm run build OR electron-packager . --all

I used these steps to create an electronjs app in past and had placed it’s executable file in start folder to run it on system startup. But, post windows update, there are some problems arising when I’m running the app in tabmode. So, I planned to create a new app but, these commands are not working perfectly. I’m getting issues with it.

So, what I want exactly trying to do is: creating an auto-launch electron app. Can anyone provide me with correct steps as I’m getting errors with the steps I provided?

Thank you in advance.