gpt4 book ai didi

node.js - 执行 npm 安装时出错

转载 作者:行者123 更新时间:2023-12-05 07:38:58 24 4
gpt4 key购买 nike

我正在尝试在我的一个文件夹中执行“npm install”,但我收到错误代码 E403 Forbidden:

npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail
on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as
possible. Use 'npm ls graceful-fs' to find it in the tree.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0
(node_modules\chokidar\node_modules\fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: 403 Forbidden:
https://registry.npmjs.org/fsevents/-/fsevents-1.1.3.tgz

npm ERR! code E403
npm ERR! 403 Forbidden: binary-extensions@^1.0.0

我的 npm 版本是 5.5.1我的node版本是v8.9.1

我的系统今天也被格式化了,我不得不从头开始重新安装和设置所有东西。在我的系统被格式化之前,npm install 一直运行到昨天。

我在这里附上了日志文件。 https://github.com/angular/angular-cli/files/1499291/2017-11-23T13_25_27_656Z-debug.log

提前致谢

编辑:每个 npm 安装都失败了。
此处供引用的是我的 .npmrc 文件中的条目:
registry=http://registry.npmjs.org/
proxy=http://user_name:password@proxy:port
https-proxy=http://user_name:password@proxy:port
strict-ssl=false

我尝试了很多命令来让它工作,但没有成功。
注意:我的密码包含“@”符号,但我在我的 .npmrc 文件中将其编码为 %40

最佳答案

好的,所以我解决了这个特殊问题。好像我必须在注册表中将 http 更新为 https,而 E403 消失了。但我仍然面临其他问题,因此决定将 np​​m 降级到 3.10.10 并将 Node 降级到 6.10.3。

关于node.js - 执行 npm 安装时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47457173/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com