简体   繁体   English

无法从npm安装最新版本的软件包

[英]Unable to install latest version of package from npm

I have a personal package on npm here https://www.npmjs.com/package/dashfleet-firebase-path-fns 我在npm上有一个个人包裹https://www.npmjs.com/package/dashfleet-firebase-path-fns

The latest version is 1.5.23 . 最新版本是1.5.23 However, npm i dashfleet-firebase-path-fns@latest only installs 1.5.21 . 但是, npm i dashfleet-firebase-path-fns@latest 1.5.21 npm i dashfleet-firebase-path-fns@latest仅安装1.5.21 Even if I do npm i dashfleet-firebase-path-fns@1.5.23 , I can't install 1.5.23 and get a warning that it's not in the available packages. 即使我执行npm i dashfleet-firebase-path-fns@1.5.23 ,我也无法安装1.5.23并得到警告,提示它不在可用的软件包中。

I'm not sure how to debug this issue. 我不确定如何调试此问题。

Make sure that you have a correct version in package.json and that you're not caching the requests to the npm registry. 确保package.json中的版本正确,并且没有将请求缓存到npm注册表中。

You may try to remove the locally (and globally) installed modules and purge your cache. 您可以尝试删除本地(和全局)安装的模块并清除缓存。 Also make sure you're not using a proxy or private registry. 另外,请确保您没有使用代理或私有注册表。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM