# How-to-use-package-json-the-core-of-any... first api challenge not passing

**URL:** <https://forum.freecodecamp.org/t/how-to-use-package-json-the-core-of-any-first-api-challenge-not-passing/269699>\
**Category:** General\
**Created:** [April 6, 2019, 9:52pm UTC](https://forum.freecodecamp.org/t/how-to-use-package-json-the-core-of-any-first-api-challenge-not-passing/269699 "2019-04-06T21:52:42Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![kravmaguy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kravmaguy/32/179611_2.png) [@kravmaguy](https://forum.freecodecamp.org/u/kravmaguy)\
**Post date:** [April 6, 2019, 9:52pm UTC](https://forum.freecodecamp.org/t/how-to-use-package-json-the-core-of-any-first-api-challenge-not-passing/269699/1 "2019-04-06T21:52:42Z")

</div>

I recall having problems with this a while back. The solution was to share and open it in a new link but now that is not working and Im recieving 504s on glitch, when I try to submit it.

here is the [glitch project](https://proud-canopy.glitch.me)

Why is this not passing when I submit the link?

I dont know why is it called ‘proud canopy the project that does six things?’  
what are these other projects on my glitch profile that I do not recall creating:  
proud-canopy,  
sunset-carraige,  
jade-salamander,  
thoughtful-order  
Are these apps related to the freecodecamp challenges?  
What are these other apps related to?

And also how to pass the first challenge of this section.

The exercise says you can clone the git repo so how would you go about doing that and submitting the challenges?

---

<div class="post-metadata">

**Author:** ![kravmaguy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kravmaguy/32/179611_2.png) [@kravmaguy](https://forum.freecodecamp.org/u/kravmaguy)\
**Post date:** [April 6, 2019, 9:56pm UTC](https://forum.freecodecamp.org/t/how-to-use-package-json-the-core-of-any-first-api-challenge-not-passing/269699/2 "2019-04-06T21:56:45Z")

</div>

Update, Now the project is loading in a new window but the errors I am recieving from freecodecamp are :

```auto
Unexpected token < in JSON at position 0

```

I copied and pasted the contents of package.json into [www.jsonlint.com](http://www.jsonlint.com) and it has verified that it is indeed valid json

---

<div class="post-metadata">

**Author:** ![shimphillip](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shimphillip/32/158663_2.png) [@shimphillip](https://forum.freecodecamp.org/u/shimphillip)\
**Post date:** [April 6, 2019, 9:57pm UTC](https://forum.freecodecamp.org/t/how-to-use-package-json-the-core-of-any-first-api-challenge-not-passing/269699/3 "2019-04-06T21:57:27Z")

</div>

Those are the names that are randomly generated by Glitch itself.

Which first challenge of this section?

---

<div class="post-metadata">

**Author:** ![kravmaguy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kravmaguy/32/179611_2.png) [@kravmaguy](https://forum.freecodecamp.org/u/kravmaguy)\
**Post date:** [April 6, 2019, 10:04pm UTC](https://forum.freecodecamp.org/t/how-to-use-package-json-the-core-of-any-first-api-challenge-not-passing/269699/5 "2019-04-06T22:04:12Z")

</div>

Freecodecamp is returning me the following errors on all challenges in the api section.  
Here is a link to the first challenge, but the error is happening on all challenges in this section:  
[first challenge in api section](https://learn.freecodecamp.org/apis-and-microservices/managing-packages-with-npm/how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package)

```auto
Unexpected token < in JSON at position 0

```

```auto
Timeout has occurred

```

---

<div class="post-metadata">

**Author:** ![shimphillip](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/shimphillip/32/158663_2.png) [@shimphillip](https://forum.freecodecamp.org/u/shimphillip)\
**Post date:** [April 6, 2019, 10:13pm UTC](https://forum.freecodecamp.org/t/how-to-use-package-json-the-core-of-any-first-api-challenge-not-passing/269699/6 "2019-04-06T22:13:54Z")

</div>

Go head and click share button in the top left corner. Make sure you switchc to App tab and share that link.

---

<div class="post-metadata">

**Author:** ![Dereje1](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dereje1/32/63598_2.png) [@Dereje1](https://forum.freecodecamp.org/u/Dereje1)\
**Post date:** [April 6, 2019, 11:57pm UTC](https://forum.freecodecamp.org/t/how-to-use-package-json-the-core-of-any-first-api-challenge-not-passing/269699/7 "2019-04-06T23:57:58Z")

</div>

There are 2 views with a glitch app, an editor view and a live view, make sure you submit the link to the live view for the challenges.

---

<div class="post-metadata">

**Author:** ![kravmaguy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kravmaguy/32/179611_2.png) [@kravmaguy](https://forum.freecodecamp.org/u/kravmaguy)\
**Post date:** [April 7, 2019, 1:37am UTC](https://forum.freecodecamp.org/t/how-to-use-package-json-the-core-of-any-first-api-challenge-not-passing/269699/8 "2019-04-07T01:37:04Z")

</div>

> Blockquote[quote=“shimphillip, post:6, topic:269699, full:true”]  
> Go head and click share button in the top left corner. Make sure you switchc to App tab and share that link.  
> [/quote]

Negative. I did follow these steps, still receiving error: Timeout has occurred

---

<div class="post-metadata">

**Author:** ![kravmaguy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kravmaguy/32/179611_2.png) [@kravmaguy](https://forum.freecodecamp.org/u/kravmaguy)\
**Post date:** [April 7, 2019, 1:39am UTC](https://forum.freecodecamp.org/t/how-to-use-package-json-the-core-of-any-first-api-challenge-not-passing/269699/9 "2019-04-07T01:39:11Z")

</div>

> [@Dereje1](#):
>
> There are 2 views with a glitch app, an editor view and a live view, make sure you submit the link to the live view for the challenges.

How do I submit a live view?  
I assume you mean: I click on the show tab with the sunglasses icon, it opens another window, this leads me to a page displaying a 504 error.

---

<div class="post-metadata">

**Author:** ![kravmaguy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kravmaguy/32/179611_2.png) [@kravmaguy](https://forum.freecodecamp.org/u/kravmaguy)\
**Post date:** [April 7, 2019, 1:40am UTC](https://forum.freecodecamp.org/t/how-to-use-package-json-the-core-of-any-first-api-challenge-not-passing/269699/10 "2019-04-07T01:40:29Z")

</div>

Package.json file:

```auto
{
  "//1": "describes your app and its dependencies",
  "//2": "https://docs.npmjs.com/files/package.json",
  "//3": "updating this file will download and update your packages",
  "author": "Abe",
  "name": "hello-express",
  "version": "0.0.1",
  "description": "A simple Node app built on Express, instantly up and running.",
  "main": "server.js",
  "scripts": {
    "start": "node server.js"
  },
  "dependencies": {
    "express": "^4.16.3"
  },
  "engines": {
    "node": "8.x"
  },
  "repository": {
    "url": "https://glitch.com/edit/#!/hello-express"
  },
  "license": "MIT",
  "keywords": [
    "node",
    "glitch",
    "express",
    "freecodecamp"
  ]
}

```

---

<div class="post-metadata">

**Author:** ![kravmaguy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kravmaguy/32/179611_2.png) [@kravmaguy](https://forum.freecodecamp.org/u/kravmaguy)\
**Post date:** [April 7, 2019, 1:44am UTC](https://forum.freecodecamp.org/t/how-to-use-package-json-the-core-of-any-first-api-challenge-not-passing/269699/11 "2019-04-07T01:44:33Z")

</div>

I am also curious how I clone this project from github and submit it, this was mentioned in the challenge as an alternative way to do this, but no further instructions were provided.

---

<div class="post-metadata">

**Author:** ![Dereje1](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/dereje1/32/63598_2.png) [@Dereje1](https://forum.freecodecamp.org/u/Dereje1)\
**Post date:** [April 7, 2019, 1:44am UTC](https://forum.freecodecamp.org/t/how-to-use-package-json-the-core-of-any-first-api-challenge-not-passing/269699/12 "2019-04-07T01:44:45Z")

</div>

Did you start with the original boilerplate given in the the challenge , if you are getting a 404 must be something wrong with your file or how you forked it

- I would logout of glitch
- login with your github
- get a copy of the boilerplate
- then submit the live view with your changes

Should work

---

<div class="post-metadata">

**Author:** ![kravmaguy](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kravmaguy/32/179611_2.png) [@kravmaguy](https://forum.freecodecamp.org/u/kravmaguy)\
**Post date:** [April 7, 2019, 2:50am UTC](https://forum.freecodecamp.org/t/how-to-use-package-json-the-core-of-any-first-api-challenge-not-passing/269699/13 "2019-04-07T02:50:30Z")

</div>

> [@Dereje1](#):
>
> - get a copy of the boilerplate
> - then submit the live view with your changes

I logged out and back in, What do you mean get a copy of the boilerplate and submit the live view with my changes? Can you please clarify.

I am click the ‘show’ button → opens up a new chrome tab [https://proud-canopy.glitch.me/](https://proud-canopy.glitch.me/) the page displays a 504 error → I copy this live broken link → freecodecamp returns ‘Timeout has occurred’

Is there an alternative way to do submit these challenges?

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:03pm UTC](https://forum.freecodecamp.org/t/how-to-use-package-json-the-core-of-any-first-api-challenge-not-passing/269699/15 "2021-01-17T20:03:23Z")

</div>


