I know theres a couple topics on this particular problem but none of them have worked for me. My server is running on LocalHost, I use the IP localhost:3000 and my console says freecodecamp.org requested, so that should be working but the challenge fails.
{
"name": "fcc-learn-npm-package-json",
"dependencies": {
"express": "^4.14.0"
},
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"repository": {
"type": "git",
"url": "https://idontknow/todo.git"
},
"author": "Eric"
}
I use http:// but it wouldnt let me post that link I guess
Which challenge is this for? Do you have server code as well or is that provided?
Oh sorry it’s for backend web development, Managing packages with NPM challenge #1
you can query freecode camp from localhost, but if you’re hosting this locally, it’s not a publicly available source, and it can’t be tested.
When you are done, make sure a working demo of your project is hosted somewhere public. Then submit the URL to it in the Solution Link field.
Alright here’s my references, it’s totally possible because it uses CORS.
Is it absolutely the case that I cannot run code locally for these exercises? I ask because in the previous section, I was able to do so. I got the directions here:
Not only that, but the instructions in the first exercise for this section that I’m having trouble with, which my first post links to, explicitly state the following:
Working on these challenges will involve you writing your code using one of the following methods:
Clone this GitHub repo and complete these challenges locally.…
https://forum.freecodecamp.org/t/how-to-submit-a-solution-for-the-back-end-tutorial/521137/4