Use:: Dot Env
require('dotenv').config()
console.log(process.env.TOKEN)
And you can have problem with multi lines string value. it can be a issue, i had this problem with cert keys. Try to check it can correctly read one line value.
CLICK HERE to find out more related problems solutions.