我正在尝试在我的文件夹之一中执行“npm install”,但收到错误代码 E403 Forbidden :
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher
to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: 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 我的节点版本是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 消失了。但我仍然面临其他问题,因此决定将 npm 降级到 3.10.10,将 node 降级到 6.10.3。
从第一行开始,它表示旧的 node-uuid 模块已被弃用,并且不会继续维护。尝试使用这些命令重新安装。
npm uninstall --save node-uuid
npm install --save uuid
第二行要求安装minimatch 所以尝试运行命令:
npm install -g [email protected]