Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clasp Could not read API credentials. Are you logged in globally?

I'm logging in with clasp login --creds <file> which produces a local .clasprc.json file. It says that I am logged in, but when I run another command I get:

Could not read API credentials. Are you logged in globally?

Any thoughts on why its not looking at my local clasprc file first?

Currently using version clasp v. 2.2.0

like image 825
delasare Avatar asked Oct 17 '25 14:10

delasare


1 Answers

I ran into the same problem on Windows 10 and found that you need to login both globally and locally to use clasp run. There should be a .clasprc.json file in both your project folder and user folder.

like image 80
utopion Avatar answered Oct 20 '25 10:10

utopion



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!