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