I'm trying to submit my changes for the back end course but I cannot manage to get it done

Hey there,

I’m trying to start the back end course but I’m not able to submit my changes. I’m following this article How to Run the freeCodeCamp Backend Challenges Locally but it seems like it’s not working for me.

Could anyone help me out to understand why?

This is my code
“name”: “fcc-learn-npm-package-json”,
“author”: “John Smith”,
“dependencies”: {
“express”: “^4.14.0”
“main”: “server.js”,
“scripts”: {
“start”: “node server.js”
“repository”: {
“type”: “git”,
“url”: “GitHub - freeCodeCamp/boilerplate-npm: A boilerplate for the freeCodeCamp curriculum.


Is there an error? Please detail the steps you are taking to submit the answer including URLs and screenshots if necessary.

I’m not sure if I’m missing something but the instructions say to submit a “localhost” link in the solution link field of the freeCodeCamp website. I’m not sure how this would work since it won’t be able to access localhost?

@jwilkins.oboe Can you share any insight here?

When you start the local server, you will see this result in the terminal

> start

> node server.js

Node.js listening on port 3000

When you submit the localhost link, a request is made to the local server and you should see this result in the terminal if successful




For this particular challenge, the test is parsing the json file to make sure they have added an author.

Here is the actual test

(getUserInput) =>
  $.get(getUserInput('url') + '/_api/package.json').then(
    (data) => {
      var packJson = JSON.parse(data);
      assert(packJson.author, '"author" is missing');
    (xhr) => {
      throw new Error(xhr.responseText);

If they haven’t added an author, or if the request didn’t go through, then the test will fail.

I was able to assist the OP earlier and their issue was that the request wasn’t going through so the tests were failing. But once they stopped the local server, switched to chrome and started the server again, they were able to pass. They might have had some sort of browser extension or something else going on with their setup that was interfering with the tests. But once they switched browsers, they were good.

Hope that helps

1 Like

Ok, so it’s just passing the tests locally and has nothing to do with submitting to the fCC public Internet website! Thank you for the clarification :pray: