首页 > 解决方案 > NPM 搜索显示版本相同但日期不同的包

问题描述

我对命令npm search helpers输出有疑问。

npm WARN search fast search endpoint errored. Using old search.
NAME                      | DESCRIPTION          | AUTHOR          | DATE       | VERSION  | KEYWORDS
helpers                                          |                 | 2018-08-27 | 1.9.6    |         
helpers                                          |                 | 2018-08-28 | 1.9.6    | 
helpers                                          |                 | 2018-08-28 | 1.9.6    | 
helpers                                          |                 | 2018-08-28 | 1.9.6    | 

如您所见,同一个包以相同的版本出现了 3 次,但日期不同。该软件包昨天发布的版本1.9.6unpublished/published` 今天使用相同的版本。我这是正常行为吗?我期待每个软件包版本都有一个条目。

标签: node.jsnpm

解决方案


NPM没有搜索问题或我无法重现您的问题尝试使用命令更新您的 npmnpm i -g npmsudo npm i -g npm

我的调查:

$ npm -v

> 5.6.0

$ npm search helpers

日期28/08/2018 搜索结果:

NAME                      | DESCRIPTION          | AUTHOR          | DATE       | VERSION  | KEYWORDS
helpers                   | helper functions…    | =fshost         | 2013-07-23 | 0.0.6    |
babel-helpers             | Collection of…       | =existentialism… | 2017-04-07 | 6.24.1   |
@babel/helpers            | Collection of…       | =danez…         | 2018-08-27 | 7.0.0    |
underscore                | JavaScript's…        | =jashkenas…     | 2018-05-31 | 1.9.1    | util functional server client browser
@turf/helpers             | turf helpers module  | =rowanwins…     | 2018-05-20 | 6.1.4    | geo point turf geojson
dom-helpers               | tiny modular DOM…    | =monastic.panic | 2017-12-20 | 3.3.1    | dom-helpers react-component dom api cross-browser style event height width dom-helpers class classlist css
babel-plugin-external-hel | This plugin…         | =existentialism… | 2017-01-20 | 6.22.0   | babel-plugin
pers                      |                      |                 |            |          |
@babel/helper-plugin-util | General utilities…   | =danez…         | 2018-08-27 | 7.0.0    |
s                         |                      |                 |            |          |
postcss-message-helpers   | PostCSS helpers to…  | =jonathantneal… | 2015-01-26 | 2.0.0    | css postcss postcss-plugins messages error warning
babel-helper-function-nam | Helper function to…  | =existentialism… | 2017-04-07 | 6.24.1   |
e                         |                      |                 |            |          |
babel-helper-hoist-variab | Helper function to…  | =existentialism… | 2017-04-07 | 6.24.1   |
les                       |                      |                 |            |          |
babel-helper-define-map   | Helper function to…  | =existentialism… | 2017-08-16 | 6.26.0   |
babel-helper-regex        | Helper function to…  | =existentialism… | 2017-08-16 | 6.26.0   |
babel-plugin-transform-ru | Externalise…         | =existentialism… | 2017-02-13 | 6.23.0   | babel-plugin
ntime                     |                      |                 |            |          |
babel-helper-optimise-cal | Helper function to…  | =jmm…           | 2017-04-07 | 6.24.1   |
l-expression              |                      |                 |            |          |
@babel/helper-function-na | Helper function to…  | =danez…         | 2018-08-27 | 7.0.0    |
me                        |                      |                 |            |          |
babel-helper-get-function | Helper function to…  | =existentialism… | 2017-04-07 | 6.24.1   |
-arity                    |                      |                 |            |          |
enzyme                    | JavaScript Testing…  | =airbnb…        | 2018-08-25 | 3.5.0    | javascript shallow rendering shallowRender test reactjs react flux testing test utils assertion helpers tdd mocha
@babel/plugin-external-he | This plugin…         | =danez…         | 2018-08-27 | 7.0.0    | babel-plugin
lpers                     |                      |                 |            |          |
babel-helper-call-delegat | Helper function to…  | =existentialism… | 2017-04-07 | 6.24.1   |
e                         |                      |                 |            |          |

推荐阅读