showdoc icon indicating copy to clipboard operation
showdoc copied to clipboard

二次开发时,npm install安装失败

Open hszyh opened this issue 2 years ago • 11 comments

npm ERR! code E404 npm ERR! 404 Not Found - GET https://cdn.npmmirror.com/packages/DOMino/2.1.6/DOMino-2.1.6.tgz npm ERR! 404 npm ERR! 404 'domino@https://registry.npmmirror.com/DOMino/-/DOMino-2.1.6.tgz' is not in this registry. npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Administrator\AppData\Local\npm-cache_logs\2022-04-11T08_47_38_512Z-debug-0.log

hszyh avatar Apr 11 '22 08:04 hszyh

我这边能正常安装,不清楚你什么情况。你尝试不使用加速镜像,用官方

star7th avatar Apr 11 '22 14:04 star7th

我也是! image

Musicminion avatar Apr 28 '22 15:04 Musicminion

看错误好像是你的镜像源有问题。尝试用官方npm仓库安装

star7th avatar Apr 28 '22 15:04 star7th

So? 我这镜像源是官方的吧?或者我配置的方法不对?

从 Windows 版邮件发送

发件人: star7th 发送时间: 2022年4月28日 23:23 收件人: star7th/showdoc 抄送: Musicminion; Comment 主题: Re: [star7th/showdoc] 二次开发时,npm install安装失败 (Issue #1671)

看错误好像是你的镜像源有问题。尝试用官方npm仓库安装 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

Musicminion avatar Apr 28 '22 15:04 Musicminion

看错误好像是你的镜像源有问题。尝试用官方npm仓库安装

image image

Musicminion avatar Apr 28 '22 15:04 Musicminion

网址npmmirror.com就是淘宝镜像。你可以尝试删除web_src/package-lock.json文件再安装看看

star7th avatar Apr 28 '22 16:04 star7th

npm指定安装源即可了 已解决

发自我的iPhone

在 2022年4月29日,00:43,star7th @.***> 写道:

 网址npmmirror.com就是淘宝镜像。你可以尝试删除web_src/package-lock.json文件再安装看看

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

Musicminion avatar Apr 29 '22 02:04 Musicminion

npm install [email protected] 可以完美解决问题 在执行npm install

Musicminion avatar Apr 29 '22 02:04 Musicminion

我这边能正常安装,不清楚你什么情况。你尝试不使用加速镜像,用官方

nodejs什么版本?

sn01615 avatar Feb 09 '23 08:02 sn01615

我开发环境使用的是v14.19.0

star7th avatar Feb 09 '23 10:02 star7th

解决办法:文件 package-lock.json 修改 https://registry.npmmirror.com/DOMino/-/DOMino-2.1.6.tgz 为 https://registry.npmmirror.com/domino/-/domino-2.1.6.tgz

2327972001 avatar Dec 14 '23 12:12 2327972001