How do I host the local npm repo somewhere public for the test?

Tell us what’s happening:
I forked & cloned to boilerplate-npm repo, changed the author name, pushed those changes to my github remote, and entered the public git repo URL into the solution box but it says it doesn’t work. I assume we need to deploy this somehow somewhere, and I have a few DNS zones I could put it in, but I’m not sure how to do that with node.js

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:94.0) Gecko/20100101 Firefox/94.0

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

Link to the challenge:

Hi @cdhippen !

When running the tests you are not supposed to use the git repo URL.
You can submit the localhost URL while the server is running.

You do not.

Do you know how to use the localhost?

Here are the steps for running your localhost with screenshots

In the command line, make sure you are in the project folder and install the node_modules folder

npm install

In the command line run npm start

Copy this local host url into the browser


You should see this

Paste the localhost link in the challenge page

Make sure you keep the server running.

This is what the server looks like running
Screen Shot 2021-11-12 at 2.01.31 PM

Then you should see it pass

Hope that helps!

Awesome, this is exactly the info I was looking for! You’re a lifesaver, thanks so much.

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