I wrote the codes in my package.json file, but yet I still got this error: saying 'package.json should have a valid "author" key'

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

Your project link(s)

solution: https://node-author.netlify.app

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.159 Safari/537.36 OPR/78.0.4093.231

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

Link to the challenge:

I was having this same issue using replit… my problem was the public url that I was using to verify my solution…
The correct one should be something like this:
https://boilerplate-npm.<your_replit_acocunt>.repl.co

If your replit account id is user123, then your public url would be:
https://boilerplate-npm.user123.repl.co

Than should work.

I know this is an old thread but just as an FYI to the original poster. Or anyone reading the thread that tries to use Netlify.

With Netlify it would have had to use serverless functions, not just the plain NodeJS code you get from the starter boilerplate. Not even sure what would be required to make it work on Netlify but it likely wouldn’t be worth the trouble.

You can use something like Heroku instead, or just use the Replit starter.

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