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

**URL:** <https://forum.freecodecamp.org/t/managing-packages-with-npm-how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package-how-to-fix/222111>\
**Category:** General\
**Created:** [August 29, 2018, 8:42am UTC](https://forum.freecodecamp.org/t/managing-packages-with-npm-how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package-how-to-fix/222111 "2018-08-29T08:42:59Z")\
**Posts on this page:** 10\
**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:** [August 29, 2018, 8:42am UTC](https://forum.freecodecamp.org/t/managing-packages-with-npm-how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package-how-to-fix/222111/1 "2018-08-29T08:42:59Z")

</div>

I copied and pasted this link

> **[Glitch](https://glitch.com/edit/#!/sunset-carriage?path=package.json:1:100:)**
>
> Combining automated deployment, instant hosting & collaborative editing, Glitch gets you straight to coding so you can build full-stack web apps, fast

  
// running test  
Unexpected token \< in JSON at position 0  
// tests completed  
How to fix ?

---

<div class="post-metadata">

**Author:** ![SpaniardDev](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/spaniarddev/32/89850_2.png) [@SpaniardDev](https://forum.freecodecamp.org/u/SpaniardDev)\
**Post date:** [August 29, 2018, 11:21am UTC](https://forum.freecodecamp.org/t/managing-packages-with-npm-how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package-how-to-fix/222111/2 "2018-08-29T11:21:18Z")

</div>

The package.json looks good to me. Are you getting g this error while pasting to 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:** [August 30, 2018, 2:10am UTC](https://forum.freecodecamp.org/t/managing-packages-with-npm-how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package-how-to-fix/222111/3 "2018-08-30T02:10:52Z")

</div>

Yes I copied and pasted the link its not letting me pass the challenge the freecodecamp is giving me the error I copied and pasted above

---

<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:** [August 30, 2018, 2:26am UTC](https://forum.freecodecamp.org/t/managing-packages-with-npm-how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package-how-to-fix/222111/4 "2018-08-30T02:26:36Z")

</div>

Just figured it out, It was my mistake as I was sharing the URL, you have to copy and paste the **share your app** link, which is found by clicking on the share button on the sidebar, and not the regular url.

---

<div class="post-metadata">

**Author:** ![SpaniardDev](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/spaniarddev/32/89850_2.png) [@SpaniardDev](https://forum.freecodecamp.org/u/SpaniardDev)\
**Post date:** [August 30, 2018, 7:57am UTC](https://forum.freecodecamp.org/t/managing-packages-with-npm-how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package-how-to-fix/222111/5 "2018-08-30T07:57:28Z")

</div>

Something might have happened with glitch as the last time I saw your project I couldn’t see anything but the Readme.

Anyway, glad you fixed this.

---

<div class="post-metadata">

**Author:** ![JohnnyBizzel](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/johnnybizzel/32/37661_2.png) [@JohnnyBizzel](https://forum.freecodecamp.org/u/JohnnyBizzel)\
**Post date:** [October 8, 2018, 1:37pm UTC](https://forum.freecodecamp.org/t/managing-packages-with-npm-how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package-how-to-fix/222111/6 "2018-10-08T13:37:06Z")

</div>

Was this anywhere in the instructions? 🤔 (rhetorical question)

---

<div class="post-metadata">

**Author:** ![ihork23](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ihork23/32/307356_2.png) [@ihork23](https://forum.freecodecamp.org/u/ihork23)\
**Post date:** [December 28, 2018, 7:09pm UTC](https://forum.freecodecamp.org/t/managing-packages-with-npm-how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package-how-to-fix/222111/7 "2018-12-28T19:09:22Z")

</div>

> [@Managing Packages with Npm - How to Use package.json, the Core of Any Node.js Project or npm Package](http://forum.freecodecamp.org/t/managing-packages-with-npm-how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package/198736/18):
>
> Hi, folks, I think you just need to open your app in browser via shared link of your app to make app working before you submit a challenge with your link.

---

<div class="post-metadata">

**Author:** ![ahmad.ali](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ahmad.ali/32/117981_2.png) [@ahmad.ali](https://forum.freecodecamp.org/u/ahmad.ali)\
**Post date:** [September 14, 2019, 11:27am UTC](https://forum.freecodecamp.org/t/managing-packages-with-npm-how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package-how-to-fix/222111/8 "2019-09-14T11:27:17Z")

</div>

make shure to put this code inside your package.json to pass:

```auto
{
	"name": "fcc-learn-npm-package-json",
 
	"dependencies": {
		"express": "^4.14.0"
	},
	"main": "server.js",
	"scripts": {
		"start": "node server.js"
	},
	"engines": {
		"node": "8.11.2"
	},
	"repository": {
		"type": "git",
		"url": "https://idontknow/todo.git"
	}
}

```

---

<div class="post-metadata">

**Author:** ![matjung](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@matjung](https://forum.freecodecamp.org/u/matjung)\
**Post date:** [July 25, 2020, 7:27pm UTC](https://forum.freecodecamp.org/t/managing-packages-with-npm-how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package-how-to-fix/222111/9 "2020-07-25T19:27:09Z")

</div>

Are the instructions of the first lesson still working?  
I think I am not having an issue with adding field author to package.json, but finding an URL from glitch where the file is saved.  
I am not even sure if glitch cloned the project from github.

---

<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 16, 2021, 11:26am UTC](https://forum.freecodecamp.org/t/managing-packages-with-npm-how-to-use-package-json-the-core-of-any-node-js-project-or-npm-package-how-to-fix/222111/10 "2021-01-16T11:26:58Z")

</div>


