Managing Packages with NPM - Add a Description to Your package.json

Tell us what’s happening:
Hi! I have added the “description” to the package.json and provided a link to the successfully deployed app, but that still seems to be an unfinished task when tested.

I deployed through Heroku. Please, can you give any tips for what could happen?

Your project link(s)

solution: https://git.heroku.com/boilerplate-npm-tomasz.git

Your browser information:

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

Challenge: Managing Packages with NPM - Add a Description to Your package.json

Link to the challenge:

I just see “Method Not Allowed” on that page. I don’t think that is the correct link.

Also, without seeing the code we can’t really help. Please post a link to the repo.

You should have a different URL for the deployed app.

Hi Randell, thanks for reply,

when I run npm start there is just this message coming up :

fcc-learn-npm-package-json@1.0.0 start
node server.js

Node.js listening on port 3000

nothing more,

what do you mean by live url ? Is this url I have taken from Heroku when I deployed it ?

when I’ve written heroku info -s I’m getting something like this:

git_url=https://git.heroku.com/fringuante-gerard-38208.git
web_url=https://fringuante-gerard-38208.herokuapp.com/

Hi lasjorg thanks for reply again,

I did what it says and I’m getting now (as I wrote above) :

when I’ve written heroku info -s I’m getting something like this:

git_url=https://git.heroku.com/fringuante-gerard-38208.git
web_url=https://fringuante-gerard-38208.herokuapp.com/

How did you pass the author challenge?

There really shouldn’t be a difference between the description and author challenges I would think.

Try installing the cors package in your project and use it inside server.js

var express = require('express');
var app = express();
// after the above code in server.js
const cors = require('cors');
app.use(cors());

// rest of server.js code

Or you can try adding https://www.freecodecamp.org to the array inside the first code block inside server.js but I’m not sure if that will work or not.

var allowedOrigins = ['https://narrow-plane.gomix.me', 'https://www.freecodecamp.com', 'https://www.freecodecamp.org'];

You need to use the web_url link for the submit.

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