dir scripting issue

Hi I am just getting started with cesium and I have run into a small problem. First I run the HelloWorld.html locally while at the same time having the script point to the cesium which lives on a server. What I get is a black earth with no map imagery. Does anyone have any suggestions?

When you say locally are you referring to having npm run a local server or do you mean via opening the html file directly in your browser?