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

For some reason it is not completing task. Help?

Here’s the full replit: boilerplate-express - Nix (beta) Repl - Replit

{
  "author": "Jose M",
  "description": "A project that does something awesome",
  "name": "fcc-learn-node-with-express",
  "version": "0.1.0",
  "dependencies": {
    "body-parser": "^1.15.2",
    "cookie-parser": "^1.4.3",
    "dotenv": "^16.0.1",
    "express": "^4.14.0",
    "fcc-express-bground": "https://github.com/freeCodeCamp/fcc-express-bground-pkg.git"
  },
  "main": "server.js",
  "scripts": {
    "start": "node server.js"
  }
}

please when you ask for help give always the link to the freecodecamp challenge

the author in the replit you posted is just some spaces, try adding a word in there

1 Like

Sorry, Here is the link https://www.freecodecamp.org/learn/back-end-development-and-apis/managing-packages-with-npm/how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package

I click on the replit link and it shows “author”: “Jose M” just as shown above.

It doesn’t look like you are using the correct starter code.

It looks like you are using the starter code for the express challenges, but these lessons are for the managing packages with NPM.

I would make sure to use the correct starter code.
For example, your starter package.json should look like this

{
	"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"
	}
}
1 Like

Exactly what it was. Thank you!