在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

相关推荐
devlei1 小时前
Electron原理初探
electron
To_OC1 小时前
LC 42 接雨水:暴力超时卡半天?前后缀数组一用就通了
javascript·算法·leetcode
小林ixn1 小时前
从 ??= 到 onKeyDown:一个 React 组件的“自我修养”
前端·javascript·react.js
এ慕ོ冬℘゜2 小时前
前端实战:jQuery 多条件联合搜索(标题模糊查询 + 日历时间段筛选)
前端·javascript·jquery
随心点儿3 小时前
js postMessage 实现跨域发送消息-应用示例
javascript·ecmascript·postmessage
kyriewen4 小时前
我让AI改一个bug——它偷偷动了5个我没让它碰的地方
前端·javascript·ai编程
gis开发之家9 小时前
《Vue3 从入门到大神35篇》Vue3 源码详解(五):effect 依赖收集原理——track 与 trigger 是如何工作的?
javascript·typescript·前端框架·vue3·vue3源码
橘子星10 小时前
我一个前端切图仔,凭什么能在浏览器里跑大模型?
前端·javascript·前端框架
半个落月10 小时前
用 LangChain JS 做可控写作实验:理解温度参数、提示词与异步调用
javascript·人工智能·后端
观远数据10 小时前
Excel到数据资产池:文件数据入湖的治理规范怎么建
前端·javascript·excel