Admin > Location & APIs > SSO > Twitter > Add new api token.
(User menu > Settings > API > generate SSO.
This is wanted behaviour as the dev paramater (as it inidicates already) is running the forum in debugging mode.
So better start NodeBB with ./nodebb start if you want it to run longer.
As I didn't understood the second part of your post:
Do you mean that NodeBB can't be started normally? If this is the case, post the log files here.
@Gerald you put a password into your config.json, even though Redis is not using one.
Also try running:
npm i firstname.lastname@example.org