Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROr: **npm ERR! Unexpected token < in JSON at position 0 while parsing near '<!DOCTYPE HTML PUBLI...'**

Tags:

npm

Image I am cloning the sitecore Habitat project to my local machine.
After cloning while running npm install, I am getting this error. I tired in all possible ways from the stack overflow answers, but did not succeed with answers still its showing errors, if anyone known about this please let me know.

ERROr: **npm ERR! Unexpected token < in JSON at position 0 while parsing near '<!DOCTYPE HTML PUBLI...'**

enter image description here

like image 536
SHREE Avatar asked Feb 12 '19 18:02

SHREE


1 Answers

Just delete

package-lock.json file

It works for me.

I getting error like:

enter image description here

like image 121
Abhishek Savani Avatar answered Oct 15 '22 03:10

Abhishek Savani