Manuel Hess
Manuel Hess

Reputation: 139

npm ERR! when installing package

when I want to install a new package, i'm getting endless error-log..

I couldn't evaluate the exact problem of it I tried npm cache clear since many people suggested it but it didn't work for me.

Maybe it's a problem with permissions, I really don't know.

I also already tried reinstalling nodejs, but nothing changed, still getting an Error when trying to install highcharts with:

npm install highcharts --save

here's the npm-debug.log since it is suggested to provide it with problems

https://gist.github.com/xsoliah/20b4a8790888d5b4842769eeabe08248

thanks for your support

Upvotes: 0

Views: 297

Answers (2)

Manuel Hess
Manuel Hess

Reputation: 139

The npm-registry url http://registry.npmjs.org/ was blocked due to my firewall settings. Adding a rule solved the problem

Unfortunatelly the error didn't contain any information related to my network-settings, so this took me some hours.

Upvotes: 0

Rahul Sharma
Rahul Sharma

Reputation: 356

Can you upload your package.json file?

In your npm-debug.log, line 10489: 35 error Unexpected token < in JSON at position 0

It looks like your packasge.json might be at fault here.

Upvotes: 1

Related Questions