在Electron用npm install 失败。

1,错误信息:

npm error HTTPError: Response code 404 (Not Found)
npm error at Request._onResponseBase (H:\MGS_Projects\OK_Projects\QuanNengPa_Client\node_modules\got\dist\source\core\index.js:913:31)
npm error at Request._onResponse (H:\MGS_Projects\OK_Projects\QuanNengPa_Client\node_modules\got\dist\source\core\index.js:948:24)
npm error at ClientRequest.<anonymous> (H:\MGS_Projects\OK_Projects\QuanNengPa_Client\node_modules\got\dist\source\core\index.js:962:23)
npm error at Object.onceWrapper (node:events:634:26)
npm error at ClientRequest.emit (node:events:531:35)
npm error at origin.emit (H:\MGS_Projects\OK_Projects\QuanNengPa_Client\node_modules\@szmarczak\http-timer\dist\source\index.js:43:20)
npm error at HTTPParser.parserOnIncomingClient (node:_http_client:716:27)
npm error at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17)
npm error at Socket.socketOnData (node:_http_client:558:22)
npm error at Socket.emit (node:events:519:28)
npm error A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2025-12-31T09_08_42_835Z-debug-0.log

2,解决方法

安装不成功用下面这个
npm install -g cnpm --registry=https://registry.npmmirror.com
cnpm install

相关推荐
guslegend4 小时前
脚手架原理与本地调试:从 bin 软链接到 npm link
前端·npm·node.js·脚手架·前端工程化
小宋10214 小时前
A2UI从零实战:Agent安全生成交互界面与事件回传
javascript·人工智能·安全·交互
大包子5 小时前
structuredClone vs lodash.cloneDeep:核心差异与选型指南
javascript·vue.js
不可能片场5 小时前
命令行中文变问号 我用环境变量救了场
前端·electron
lerhxx5 小时前
AI 应用中的上下文管理 —— 从"上下文窗口"到"分层压缩"的工程实践
前端·javascript
Mahut6 小时前
我在 Mac 上做了个本地剪辑器
javascript·架构·产品
汉堡大王95276 小时前
GPT-6 上线 48 小时,我扒开了 Intelligent UI 的运行机制:DIL、沙箱 Worker 和一个 React 式协调器
前端·javascript·后端
hai_android6 小时前
Chat 聊天模块功能总结
前端·javascript·vue.js
创世虚拟世界7 小时前
我做了一个 3D 虚拟世界基底,基于这个再做 3D 虚拟世界或者元宇宙,会事半功倍
javascript·人工智能·3d·gitee·虚拟现实