Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: Missing the environment variable 'TWITTER_CONSUMER_KEY' #1

Open
ShaneAbara opened this issue Mar 28, 2019 · 6 comments
Open

Comments

@ShaneAbara
Copy link

error: Missing the environment variable 'TWITTER_CONSUMER_KEY'

I already filled up the .env file

@Ryan-dp
Copy link

Ryan-dp commented Oct 23, 2019

can you help me Step by step Im just new here

@iamkevino
Copy link

error: Missing the environment variable 'TWITTER_CONSUMER_KEY'

I already filled up the .env file

You need to load the .env file, so add this to the app.js file:

require('dotenv').config({ path: './.env' });

And of course, install dotenv -> npm i dotenv

@lu-jingxuan
Copy link

'gm' is not available on the command line

@SugarD-x
Copy link

SugarD-x commented Sep 4, 2020

CardWasDeclined: Run npm install gm within the bot's root directory.

Ryan-dp: Please open your own bug report.

ShaneAbara: Did you rename .env-sample to .env? If not, you need to do this. Also make sure your text editor is not saving it as .env.txt by mistake.

iamKTD: It should already be coded into the bot that way. As long as you rename the .env file appropriately, you shouldn't need to add that line.

@WebStoneRDX
Copy link

Same problem above. All fix has been applied but error still exist

@WebStoneRDX
Copy link

Already figured it out. Just put this in the start of app.js

require('dotenv').config()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants