# The Glitch part of this course doesn't seem to work for me

**URL:** <https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839>\
**Category:** General\
**Created:** [August 24, 2019, 9:14pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839 "2019-08-24T21:14:46Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![OscarLawton](https://avatars.discourse-cdn.com/v4/letter/o/7c8e57/32.png) [@OscarLawton](https://forum.freecodecamp.org/u/OscarLawton)\
**Post date:** [August 24, 2019, 9:14pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/1 "2019-08-24T21:14:46Z")

</div>

[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/](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/)

Here’s my code, it seems to have a valid “author field” but FFC says it doesn’t.

> **[Glitch](https://glitch.com/edit/#%21%2Fleather-rodent%3Fpath%3Dpackage.json%3A1%3A0)**
>
> Combining automated deployment, instant hosting & collaborative editing, Glitch gets you straight to coding so you can build full-stack web apps, fast

Here’s the Share link

> **[leather-rodent](https://glitch.com/~leather-rodent)**
>
> Check out ~leather-rodent on Glitch, the friendly community where everyone can discover & create the best apps on the web.

---

<div class="post-metadata">

**Author:** ![adam-weiler](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adam-weiler/32/106955_2.png) [@adam-weiler](https://forum.freecodecamp.org/u/adam-weiler)\
**Post date:** [August 24, 2019, 9:29pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/2 "2019-08-24T21:29:02Z")

</div>

@OscarLawton: Did you clone the original Glitch project from the freeCodeCamp instructions? What I believe is happening is you have set up a .json file, but there is no server to receive requests.

So even though your JSON is valid, the browser just gets hung-up trying to load and never getting a response.

Here is the original boilerplate for you to clone:

> **[Glitch: The friendly community where everyone builds the web](https://glitch.com/#%21%2Fimport%2Fgithub%2FfreeCodeCamp%2Fboilerplate-npm)**
>
> Simple, powerful, free tools to create and use millions of apps.

---

<div class="post-metadata">

**Author:** ![OscarLawton](https://avatars.discourse-cdn.com/v4/letter/o/7c8e57/32.png) [@OscarLawton](https://forum.freecodecamp.org/u/OscarLawton)\
**Post date:** [August 24, 2019, 9:30pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/3 "2019-08-24T21:30:39Z")

</div>

thanks Adam, how do I clone?

---

<div class="post-metadata">

**Author:** ![adam-weiler](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adam-weiler/32/106955_2.png) [@adam-weiler](https://forum.freecodecamp.org/u/adam-weiler)\
**Post date:** [August 24, 2019, 9:33pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/4 "2019-08-24T21:33:31Z")

</div>

[https://learn.freecodecamp.org/apis-and-microservices/managing-packages-with-npm/](https://learn.freecodecamp.org/apis-and-microservices/managing-packages-with-npm/)

If you click on the section that says ‘Start this project on Glitch using this link’ it should create a new project for you.

---

<div class="post-metadata">

**Author:** ![OscarLawton](https://avatars.discourse-cdn.com/v4/letter/o/7c8e57/32.png) [@OscarLawton](https://forum.freecodecamp.org/u/OscarLawton)\
**Post date:** [August 24, 2019, 9:33pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/5 "2019-08-24T21:33:47Z")

</div>

also the link to the npm boilerplate seem to just take me to my glitch home page, there’s no code there

---

<div class="post-metadata">

**Author:** ![OscarLawton](https://avatars.discourse-cdn.com/v4/letter/o/7c8e57/32.png) [@OscarLawton](https://forum.freecodecamp.org/u/OscarLawton)\
**Post date:** [August 24, 2019, 9:38pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/6 "2019-08-24T21:38:58Z")

</div>

Yes that’s correct, that works, it creates a new project for me.

I then put in the author field. Then I click on the share link, there’s three sub options, “Project page”, “Live App” and “Code”.

The first options says “package.json should have a valid “author” key”.

The second option a timeout occurs.

And the third option says the same as the first.

There doesn’t seem to be any code in my server.js file. Is this the problem?

---

<div class="post-metadata">

**Author:** ![adam-weiler](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adam-weiler/32/106955_2.png) [@adam-weiler](https://forum.freecodecamp.org/u/adam-weiler)\
**Post date:** [August 24, 2019, 9:45pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/7 "2019-08-24T21:45:48Z")

</div>

Hmm, I know sometimes Glitch is a bit funky sometimes and doesn’t clone the project properly.

I just cloned a new project from the boilerplate and it looks like this:  
`https://glitch.com/edit/#!/level-reaction`

Feel free to Remix it; this copies the project and lets you edit it.

When you submit the link to fCC testing, the link should be something like this:  
`https://level-reaction.glitch.me/`

---

<div class="post-metadata">

**Author:** ![OscarLawton](https://avatars.discourse-cdn.com/v4/letter/o/7c8e57/32.png) [@OscarLawton](https://forum.freecodecamp.org/u/OscarLawton)\
**Post date:** [August 24, 2019, 9:48pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/8 "2019-08-24T21:48:11Z")

</div>

the first link gives a page not found

---

<div class="post-metadata">

**Author:** ![OscarLawton](https://avatars.discourse-cdn.com/v4/letter/o/7c8e57/32.png) [@OscarLawton](https://forum.freecodecamp.org/u/OscarLawton)\
**Post date:** [August 24, 2019, 9:49pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/9 "2019-08-24T21:49:33Z")

</div>

could try to post the first link again

---

<div class="post-metadata">

**Author:** ![adam-weiler](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adam-weiler/32/106955_2.png) [@adam-weiler](https://forum.freecodecamp.org/u/adam-weiler)\
**Post date:** [August 24, 2019, 9:51pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/10 "2019-08-24T21:51:00Z")

</div>

Weird, it did something strange when I pasted it. Is this one working:  
`https://glitch.com/edit/#!/level-reaction`

---

<div class="post-metadata">

**Author:** ![OscarLawton](https://avatars.discourse-cdn.com/v4/letter/o/7c8e57/32.png) [@OscarLawton](https://forum.freecodecamp.org/u/OscarLawton)\
**Post date:** [August 24, 2019, 9:51pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/11 "2019-08-24T21:51:59Z")

</div>

yes that’s working!

So was the problem to do with my server.js file?

---

<div class="post-metadata">

**Author:** ![adam-weiler](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adam-weiler/32/106955_2.png) [@adam-weiler](https://forum.freecodecamp.org/u/adam-weiler)\
**Post date:** [August 24, 2019, 9:59pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/12 "2019-08-24T21:59:45Z")

</div>

The 2 main differences between the boilerplate and your app:

-Without the content in the server.js file, it doesn’t know what to do. When you try to load the page there is no response, so the browser is left hanging.

-Without an index file, there is no page to load and I “think” the fCC testing unit needs that to determine if the page is passing tests. (I’m not 100% sure on this part.)

-There are also some differences in the package.json file. I’m not sure what’s required, so best just to use the ones they supply.

---

<div class="post-metadata">

**Author:** ![OscarLawton](https://avatars.discourse-cdn.com/v4/letter/o/7c8e57/32.png) [@OscarLawton](https://forum.freecodecamp.org/u/OscarLawton)\
**Post date:** [August 24, 2019, 10:02pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/13 "2019-08-24T22:02:31Z")

</div>

how come ffc didn’t give a glitch app that worked apart from the “author field” of course?

It seems like it throws people way in the deep end

---

<div class="post-metadata">

**Author:** ![OscarLawton](https://avatars.discourse-cdn.com/v4/letter/o/7c8e57/32.png) [@OscarLawton](https://forum.freecodecamp.org/u/OscarLawton)\
**Post date:** [August 24, 2019, 10:03pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/14 "2019-08-24T22:03:10Z")

</div>

did they go over index file and server.js earlier in the course and I missed it?

---

<div class="post-metadata">

**Author:** ![adam-weiler](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adam-weiler/32/106955_2.png) [@adam-weiler](https://forum.freecodecamp.org/u/adam-weiler)\
**Post date:** [August 24, 2019, 10:11pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/15 "2019-08-24T22:11:06Z")

</div>

I’m sorry, I think I gave the wrong impression!

It’s actually Glitch that is causing the ‘glitch’. Sometimes when you try to clone from their website, it doesn’t clone properly. I’ve had it happen a couple times too, where it gave me a blank project.

The boilerplate link from the fCC has all of the materials. The “level-reaction” project I just created by clicking on the fCC link.

I found this unit kindof confusing when I did it too… up till this point it’s been HTML, CSS, JS, all front-end work. Then when they give you a server to manage, it’s a bit of a challenge.

---

<div class="post-metadata">

**Author:** ![OscarLawton](https://avatars.discourse-cdn.com/v4/letter/o/7c8e57/32.png) [@OscarLawton](https://forum.freecodecamp.org/u/OscarLawton)\
**Post date:** [August 24, 2019, 10:29pm UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/16 "2019-08-24T22:29:03Z")

</div>

I don’t know, Glitch hasn’t given me a boilerplate with the a working server.js file. It usually says something about “run refresh in the console”.

I don’t know, but thanks for all your help and sorting this all out, thank you

---

<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, 9:28am UTC](https://forum.freecodecamp.org/t/the-glitch-part-of-this-course-doesnt-seem-to-work-for-me/308839/17 "2021-01-17T09:28:49Z")

</div>


