Can't pass this challenge - How to Use package.json, the Core of Any Node.js Project or npm Package

Tell us what’s happening:

I’m quite certain that I am following the steps correctly, and I’ve Googled similar answers, but the course is just not letting me pass it and giving me this error

// running tests
package.json should have a valid “author” key (Test timed out)
// tests completed

I am submitting the LiveApp after running

https://boilerplate-npm.tai-anan.repl.co

Your code so far

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

Your browser information:

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

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

Link to the challenge:

Not really sure what is going on. It works if I fork it and run it from my own account.

You can try using Glitch instead. It works the same, when you create a new project it lets you import from GitHub and you can use the starter boilerplate repo.


Link to your code with the editor:

The site says not to use Glitch? I really want this sorted because then I can move on to all the other projects.

Not sure what you mean, where does it say that?

Glitch is what we used before switching to Replit and I know some people having issues with Replit can make it work using Glitch instead. It really doesn’t matter what platform you use, as long as it can run Node and gives you a live site URL you can use it.

I tried again on Glitch and I asked on the Discord server but I still can’t get it working. I’d like to move on to the other challenges, they all seem gated behind this one.

You will have to post a link to your Glitch if you want help.

https://neon-leeward-taste.glitch.me

I have submitted both my Live Code and everything in the “Share” menu to the challenge, I still get

// running tests
package.json should have a valid “author” key (Test timed out)
// tests completed

You have added the author field to the dependencies object. That is not where it is supposed to be. Edit: Also just as an extra note here, properties, i.e. key/value pairs should be comma separated.

"dependencies": {
  "express": "^4.14.0"
  "author": "Jane Doe",
},

Docs


Also, please link to the editor, not just the live app.

Thanks I finally got it to work.

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