Error after giving right solution

Tell us what’s happening:
Describe your issue in detail here.

Your project link(s)


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.60 Safari/537.36 Edg/100.0.1185.29

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

Link to the challenge:

following is my solution but console keep telling “// running tests
package.json should have a valid “author” key
// tests completed
package.json should have a valid “author” key”

“name”: “fcc-learn-npm-package-json”,
“author”: “Keshav”,
“dependencies”: {
“express”: “^4.14.0”
“main”: “server.js”,
“scripts”: {
“start”: “node server.js”
“repository”: {
“type”: “git”,
“url”: “https://idontknow/todo.git

Hello @keshku000 you have completed the challenge locally and uploaded the folder to replit.
so your current folder structure looks like

-package.json (author key is present here but the start command is 
 *node server.js* which is not correct

replit starts with the package file in the root of project.

I don’t understand your file structure. I’m no expert on replit, but I think you have the wrong structure.

I think that folder (boilerplate-npm…) should not be there, the files inside should be on this level. You have another package.json in that folder.

Use the Replit starter project. It will open the starting code up on Replit.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.