[英]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. 我无法评估它的确切问题,因为很多人建议使用npm cache clear
,但是它对我不起作用。
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: 我也已经尝试过重新安装nodejs,但是没有任何变化,尝试通过以下方式安装highcharts时仍然出现错误:
npm install highcharts --save
here's the npm-debug.log since it is suggested to provide it with problems 这是npm-debug.log,因为建议为它提供问题
https://gist.github.com/xsoliah/20b4a8790888d5b4842769eeabe08248 https://gist.github.com/xsoliah/20b4a8790888d5b4842769eeabe08248
thanks for your support 谢谢你的支持
Can you upload your package.json file? 您可以上传package.json文件吗?
In your npm-debug.log, line 10489: 35 error Unexpected token < in JSON at position 0 在您的npm-debug.log中,行10489:35错误意外令牌<在JSON中的位置0
It looks like your packasge.json might be at fault here. 您的packasge.json似乎在这里有问题。
The npm-registry url http://registry.npmjs.org/ was blocked due to my firewall settings. 由于我的防火墙设置,npm-registry网址http://registry.npmjs.org/被阻止。 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. 不幸的是,该错误不包含与我的网络设置有关的任何信息,所以这花了我几个小时。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.