npm error: json parse error while installing dependancies and packages

65 views
Skip to first unread message

djgokul

unread,
Apr 11, 2016, 9:31:52 PM4/11/16
to AngularJS
Hi,

I am trying to learn angular 2. I have downloaded and installed node and npm via installer from node.js successfully. But when i try to download packages and local dependencies in folder 'angular 2-starter' which i had created, I am getting error when using sudo npm install command at the terminal. Its seems like a json error. attaching the log file and package.json file with this post. can you please help me with this

Thanks,
Gokul

npm-debug.log
package.json

Tito

unread,
Apr 11, 2016, 9:49:07 PM4/11/16
to AngularJS
please dump your package.json content in http://jsonlint.com/ and see if your json is valid

djgokul

unread,
Apr 12, 2016, 1:03:20 AM4/12/16
to AngularJS
I get the following error when i use the jsonlint: I am not sure how to correct it

Error: Parse error on line 2:
{	"name": "angular2-starter”	
----------^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'

djgokul

unread,
Apr 12, 2016, 1:43:02 AM4/12/16
to AngularJS
Yes.. its done. now it works. eliminated json error and npm packages got installed successfully! thank you


On Monday, April 11, 2016 at 9:31:52 PM UTC-4, djgokul wrote:

Tito

unread,
Apr 12, 2016, 1:55:50 AM4/12/16
to AngularJS
another nice tool to use is notepad++ it will show you the issues. embedded chars that mess things up. glad it worked
Reply all
Reply to author
Forward
0 new messages