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

Getting Error when with 'npm start' #8

Open
orbonnie opened this issue Mar 24, 2020 · 5 comments
Open

Getting Error when with 'npm start' #8

orbonnie opened this issue Mar 24, 2020 · 5 comments

Comments

@orbonnie
Copy link

Terminal throws error "new Error('username is required');" when I run npm start.

@darleendenno
Copy link

Terminal throws error "new Error('username is required');" when I run npm start.

This happens for me as well. Does this repository need to be updated?

@tesla809
Copy link

For Mac:
If you submitted your API and AUTH keys into ~./bash_profile, then you will need to restart your terminal.

Just exit your terminal program completely. Then go back in, navigate to your project directory and run npm start

Hope this helps.

@r-comstock
Copy link

I am getting the same error. I am on Windows 10 and ran the setx commands. I tried restarting the terminal and that did not help.

@alankleindev
Copy link

For the Windows environmental steps:

setx TWILIO_ACCOUNT_SID 'ACXXXXXXXXX'
setx TWILIO_AUTH_TOKEN 'XXXXXXXXX'
setx TWILIO_PHONE_NUMBER '+16518675309'

Don't use the starting and closing apostrophe (i.e. ' and ').

So do this instead:

setx TWILIO_ACCOUNT_SID ACXXXXXXXXX
setx TWILIO_AUTH_TOKEN XXXXXXXXX
setx TWILIO_PHONE_NUMBER +16518675309

Also once setting these, close your CMD session and reopen it, then run npm start.

@mstem
Copy link

mstem commented Aug 1, 2020

Thanks @alankleindev! It might be good to update the readme with this info

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