Running FCC locally has no images in challenges

Hi Everyone
I have managed to get FCC running locally on a Windows 10 machine with Node 18 etc.
Everything appears fine at first until you try the curriculum. when you get to the insert image to put the cat image in, the URI is a web based URI from and so will not show offline.
The images do not appear to be in the filesystem locally, so I tried to create a way to be able to add them locally by creating an images folder in the client and using /images/myimage.jpg as the source. this works and puts the image in. However, when you want to run the test, it complains that the src attribute is wrong. Additionally it shows the src attribute in the challenge instructions so this is not good for my students.
I tried editing the code in the ‘freeCodeCamp\curriculum\challenges\english\14-responsive-web-design-22\learn-html-by-building-a-cat-photo-app\’ file as well as the asserts and hints in there but it still shows the original details in the browser window. I have also tried stopping and starting the server and client but still does not update.
Am I missing something? How can I change this to use a local image repository?

Hi @MonsterMaker

I haven’t tried running the projects or testing locally. However, going by what you have described, the tests expect the href attribute to point to the FreeCodeCamp hosted image which won’t work when running the tests offline. My best guess is for you to change the tests. I don’t know how possible that is.

Yes, that’s what I have been trying to do. It does not pick up the changes though.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.