Unexpected token < in JSON at position 0 by using glitch

First Challenge from

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

It keeps on giving same error I don’t know why I am using Glitch for submitting my code

Unexpected token < in JSON at position 0

I found something on the freecodecamp forum saying I need to put the link for my package.json file. How am I supposed to do that by the glitch. I am new to glitch.

This is my code.

  "name": "hello-express",
  "author": "Aditya Kumar",
  "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.4"
  "engines": {
    "node": "8.x"
  "repository": {
    "url": "https://glitch.com/edit/#!/hello-express"
  "license": "MIT",
  "keywords": [

You are probably trying to submit the wrong link. If you search the forum for " Unexpected token < in JSON", you’ll find dozens of explanations.

But this is the only link available by glitch when I click on the share button on glitch.

1 Like