https://www.growthbook.io/ logo
#announcements
Title
# announcements
b

bulky-soccer-51365

06/28/2021, 7:02 PM
i’ve been running into a lot of npm related issues lately, something is broken and im dreaming of just wiping this old guy and starting fresh. packages i’ve just installed go missing, etc. etc.
f

fresh-football-47124

06/28/2021, 7:02 PM
ya
is it networking?
b

bulky-soccer-51365

06/28/2021, 7:03 PM
npm i hangs with the following:
Copy code
sill idealTree buildDeps
tried all the usuals. cache clear, double-check registry. remove package-lock, etc. etc.
npm i in other repos is working, and it doesn’t seem specific to the growthbook pacakge
f

fresh-football-47124

06/28/2021, 7:05 PM
what does
Copy code
npm config get registry
give you?
b

bulky-soccer-51365

06/28/2021, 7:06 PM
aye. was set to corporate endpoint. something there is broken.
i thought i had set global to the offical npm, but apparently not.
f

fresh-football-47124

06/28/2021, 7:32 PM
Okay, I'm sure you know, but this should work
Copy code
npm config set registry <https://registry.npmjs.org/>
b

bulky-soccer-51365

06/28/2021, 8:08 PM
aye - resolved this a while ago. Then had to dig up old bigquery sandbox info
now i’m at
Copy code
API keys can be used with our Client Libraries (Javascript, React, PHP, Ruby, or Python) or the Visual Editor. View Documentation
and it looks like the ‘view doc’ link here is also broken. : https://docs.growthbook.io/api
thank you tho 🙂
looks like this should point to : https://docs.growthbook.io/api-docs
hm. a bit confused here.
i’ve setup my bigquery sandbox and moved on to generating an apikey i have that, so im trying to hit both my docker server’s endpoint… localhost:3000/config/myKey and /or https://cdn.growthbook.io/config/myKey both return 404
f

future-teacher-7046

06/28/2021, 8:17 PM
the api is hosted on port 3100, not 3000. So localhost:3100/config/myKey should work
b

bulky-soccer-51365

06/28/2021, 8:17 PM
ah duh, yah i’d seen that.
👍
f

future-teacher-7046

06/28/2021, 8:20 PM
I'll fix that api docs link and add some more clarification there about using port 3100
b

bulky-soccer-51365

06/28/2021, 8:40 PM
aye. yah. i remember reading that the docker app started the api on 3100, but its getting to the end of the day so it slipped from memory.
im excited about finding and setting this up.
f

fresh-football-47124

06/28/2021, 8:42 PM
🚀
14 Views