Managing Packages with NPM - How to Use package.json, the Core of Any Node.js Project or npm Package

Tell us what’s happening:

Hello please help , how to actually setup this , and when i submit the url after adding author name in the package.json , its showing error

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Mobile Safari/537.36

Challenge Information:

Managing Packages with NPM - How to Use package.json, the Core of Any Node.js Project or npm Package

Welcome to the forum @alensharhan148

So the forum can assist, can you share the error message you receive?

Happy coding


I forked the FreeCodeCamp boilerplate-npm GitHub repository and added the author key in the package.json file, but when I upload it, the URL appears as shown in the image.

Hi @alensharhan148

You also need to send a second link.

Happy coding

You can’t submit the GitHub repo.

Start the server locally and submit http://localhost:3000

Or use Gitpod and submit the link from the live preview window.

I updated the package.json file by adding the author’s name. Then, I started the server locally using the command prompt and submitted the URL http://localhost:3000 still not working

how did you start the server? do you have any errors there?

can you share your code?

I started the server using a GitHub repository in the command prompt by running the following commands:
git clone GitHub - alensharhan/boilerplate-npm: A boilerplate for the freeCodeCamp curriculum.
cd boilerplate-npm
npm install
npm start
After starting the server, I copied and pasted the URL into the browser to open the webpage and then submitted it on FreeCodeCamp.

did you start the server before or after doing the changes?

After making the changes, I started the server

I have no idea then, if you did what you say you did it should pass

what link are you submitting?
what do the tests say?

I submited this link - “localhost:3000”
And when i click the submit button it shows the error - package.json should have a valid ‘author’ key

Your solution works from my end. Please try one of the following steps to move forward.

Force a refresh of your page with CTRL + F5 then try to submit the code in again.

or - Try the step in incognito or private mode.

or - Disable any/all extensions that interface with the freeCodeCamp website (such as Dark Mode, Ad Blockers, or Spellcheckers).

or - Ensure your browser is up-to-date or try a different browser.

I hope one of these will work for you.


worked thanks!, i changed the browser