Managing Packages with Npm - How to Use package.json, the Core of Any Node.js Project or npm Package doesn't work?

When I change the package.json in the Repl.it file and I copy and paste in the challenge space requirement It says that doesn’t work.

Here my answser :

{
  "name": "fcc-learn-npm-package-json",
  "author": "John",
  "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"
  }, 
}

Here the error :
“package.json should have a valid “author” key”

Here the link of the challenge:

Someone can help me with that please ?

Thank you :slight_smile:

Hello @Thibault-21.

Remove the last , (comma). I see an error on the console when I copy and paste your package.json.

1 Like