lite-server icon indicating copy to clipboard operation
lite-server copied to clipboard

Got an error while trying to run lite-server

Open sashanksai94 opened this issue 7 years ago • 2 comments

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):

Environment

  • lite-server version:
  • nodejs version:
  • npm version:
  • OS type/version:

sashanksai94 avatar Oct 20 '17 11:10 sashanksai94

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:

sashanksai94 avatar Oct 20 '17 11:10 sashanksai94

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

zatchgordon avatar Nov 09 '17 14:11 zatchgordon