johnpapa / lite-server

Lightweight node server
MIT License
2.31k stars 267 forks source link

Got an error while trying to run lite-server #129

Open sashanksai94 opened 7 years ago

sashanksai94 commented 7 years ago

Before you open an issue, please check if a similar issue already exists or has been closed before.

A descriptive title

The behavior you expect to see, and the actual behavior...

For feature requests, a description of the problem you're trying to solve, including why you think this is a problem.

Bug repro steps

Please give us an isolated way to reproduce the behavior (example: GitHub repository with code that anyone can clone to observe the problem, or a Dockerfile that replicates your environment):

1. 2. 3.

Environment

sashanksai94 commented 7 years ago

PS C:\Users\saisashank\Desktop\git-test> npm start npm ERR! Windows_NT 10.0.14393 npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_mo rt" npm ERR! node v6.11.4 npm ERR! npm v3.10.10 npm ERR! file C:\Users\saisashank\Desktop\git-test\package.json npm ERR! code EJSONPARSE

npm ERR! Failed to parse json npm ERR! Unexpected token 'l' at 9:8 npm ERR! "lite":"lite-server" npm ERR! ^ npm ERR! File: C:\Users\saisashank\Desktop\git-test\package.json npm ERR! Failed to parse package.json data. npm ERR! package.json must be actual JSON, not just JavaScript. npm ERR! npm ERR! This is not a bug in npm. npm ERR! Tell the package author to fix their package.json file. JSON.parse

npm ERR! Please include the following file with any support request:

zatchgordon commented 7 years ago

The error looks like it's telling you "package.json" isn't setup correctly