简体   繁体   English

npm ERR! 安装软件包时

[英]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.

相关问题 为Highstock-browserify安装node.js依赖项时出现“ npm err:不是软件包” - “npm err: not a package” when installing node.js dependencies for Highstock-browserify 使用npm安装时重命名包 - rename package when installing with npm 呃! 尝试将包发布到 npm 时出现 403 - ERR! 403 when trying to publish a package to npm 每当安装任何软件包时,npm err代码eisdir errno -4068 - npm err code eisdir errno -4068 whenever installing any package npm 错误! 404 Not Found for Private Package 在 gitLab CICD 上安装时 - npm ERR! 404 Not Found for Private Package while installing on gitLab CICD npm err! 安装要在电子应用程序中使用的请求模块时的代码1 - npm err! code 1 when installing request module to be used in electron app 构建 docker 图像会引发 gyp ERR! 安装npm时不行 - building docker image throws gyp ERR! not ok when installing npm 安装 npm 包时 /src 是什么意思? - What the /src means when installing npm package? 安装离子时 npm ERR - npm ERR while installing ionic npm 错误! 吉普错误! 在安装了 Visual Studio 2022 Enterprise 的 windows 11 中安装节点 sass 时 - npm ERR! gyp ERR! when installing node sass in windows 11 with Visual Studio 2022 Enterprise installed
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM