How do you do this please help me

Tell us what’s happening:
Describe your issue in detail here.
i cant figure this out i have been trying for days now and im still stuck please help me.

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14526.69.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.82 Safari/537.36

Challenge: How to Use package.json, the Core of Any Node.js Project or npm Package

Link to the challenge:

Can you provide a link to your replit?

ok i will sorry i didnt already

ok i put in the link now.

This is your package.json:

	"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": "Jane Doe",

It is not valid JSON. that "author": "Jane Doe", needs to be part of that JSON object, like right under your "name": "fcc-learn-npm-package-json", key/value.

This is why when I try to run your package, I get:

 npm start
npm ERR! file /home/runner/hTgCbSidCF_/package.json
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected string in JSON at position 232 while parsing '{
npm ERR! JSON.parse     "name": "fcc-learn-npm-package-json",'
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/runner/.npm/_logs/2022-04-14T14_15_17_977Z-debug.log
exit status 1

in the console. The message is a little cryptic, but I think the point is that it can’t parse the JSON.

1 Like

so how do you do it?

oh btw do you guys have a discord?

Sorry, I don’t have discord.

As to solving this, you need to learn what a valid JSON file is. Do what professional developers do - google it and look it up. You’re going to have to understand what a properly formatted json file looks like.

freeCodeCamp has a discord

well im at school and at our school we cant go on links on google well exept certain ones .

Well, tell them that in order to do modern computer programming, you need to google things.