Managing Packages with NPM - How to Use package.json, the Core of Any Node.js Project or npm Package

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

I’ve added author to the json package but it keeps stating it wants a live URL. I’ve tried downloading github desktop and replit but it doesn’t give a live URL option.

Your code so far

Your browser information:

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

Challenge: Managing Packages with NPM - How to Use package.json, the Core of Any Node.js Project or npm Package

Link to the challenge:

What are you using for the live url?

I’ve tried using replit and github. It seems like whenever I try running the code again I get this error.

I’ve even downloaded github for desktop to try and get the live url. I did the same in github and it didn’t have an option for live url.

You need to run npm install before clicking Run. That error message indicates the express package shown in the package.json was not installed.

What did you use for the live url?

If you share your replit or your GitHub repo, we can take a look and see if there is anything wrong.

Did you run the npm install command in the console?

yes, and it works! but it says there is an author key missing when I upload the solution

It works! but it’s saying that it’s missing the author key, even though it is in the code

Did you make the author change before or after you clicked Run. If after, then you will need to click Stop, make the change and then click Run again so the live url reflects the changes. Also what are you submitting as the live url for the challenge?

I’ve clicked Stop and made the change and then clicked run again. I am submitting the link in the console of the PIP in the challenge., but I am receiving the same author key error message when I submit it.

The link you provided is not working. Are you seeing any errors in the Node console after you click Run?

no errors after Running

Your replit has become corrupted.

Try this:

  1. Click on image at the top left.

  2. Click the image

  3. Select image

This will allow you to create a fork of your current project code with a new name. Once the new project is created, make sure to first run npm install and let it finish before clicking Run.

You should then see a preview. If you copy/ paste the live url above the preview pane and submit it, the challenge should pass.

I’ve tried and it still hasn’t passed, as it says there should have a valid “author” key

That one is passing for me.

I hate to suggest this but can you try using a VPN?

You can also try using CodeSandbox

@lasjorg This is one of those weird ones again where I can fork it and the SSL issue goes away but the user (who in this case is US based) is not able to resolve using same steps.

it seems to have worked now!

Yes, I’m guessing a VPN might fix it. It does look an awful lot like a geolocation issue with Replit.

We did mention it in the GitHub issue, so maybe if Quincy talks to the Replit team at some point it will be brought up. Otherwise, we have to open an issue with Replit and see what they have to say about it.

Did you do anything to fix it?

I didn’t do anything else, I just kept submitting it and it finally accepted it