Adding author key to package.JSON

Tell us what’s happening:
I’m trying to do the first exercise in the API certification and it asks me to clone a github project and add an author key with my name in it which I thought I did but I must have done something wrong because I keep getting an error saying my package.json must have an author key. Any help is appreciated. Thank you.

Your code so far
Here’s what I have:

{
	"name": "fcc-learn-npm-package-json",
	"author": "Tia S",
	"dependencies": {
		"express": "^4.14.0"
	},
	"main": "server.js",
	"scripts": {
		"start": "node server.js"
	},
	"engines": {
		"node": "8.11.2"
	},
	"repository": {
		"type": "git",
		"url": "https://idontknow/todo.git"
	}
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36.

Challenge: undefined

Link to the challenge:
https://www.freecodecamp.org/learn/apis-and-microservices/managing-packages-with-npm/how-to-use-package.json-the-core-of-any-node.js-project-or-npm-package

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

You can’t submit the package.json file.

I would suggest using the Glitch starter project instead. Remember to submit the full page on Glitch. You can get to it by clicking the “Share” button, then “Live App” and copying that URL for the submit.

3 Likes

This one worked perfectly. Thank You!