Node.js package.json版本依赖规则^npm update命令无法正常工作

Node.js package.json版本依赖规则^npm update命令无法正常工作,node.js,versioning,npm-update,Node.js,Versioning,Npm Update,我正在尝试对npm更新做一个简单的测试,这里是我的package.json { "name": "nodetest3", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test&qu

我正在尝试对npm更新做一个简单的测试,这里是我的package.json

{
  "name": "nodetest3",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "chalk": "^0.1.0"
  }
}
我可以看到粉笔版本

npm view chalk versions
[
  '0.1.0',        '0.1.1',        '0.2.0',
  '0.2.1',        '0.3.0',        '0.4.0',
  '0.5.0',        '0.5.1',        '1.0.0',
  '1.1.0',        '1.1.1',        '1.1.2',
  '1.1.3',        '2.0.0',        '2.0.1',
  '2.1.0',        '2.2.0',        '2.2.2',
  '2.3.0',        '2.3.1',        '2.3.2',
  '2.4.0',        '2.4.1',        '2.4.2',
  '3.0.0-beta.1', '3.0.0-beta.2', '3.0.0',
  '4.0.0',        '4.1.0'
]
在我跑步的时候

npm update
我应该得到chalk 0.5.1的软件包版本,因为我在依赖项中使用了^1,至少这是根据手册(如果我使用~updates to the latest patch,如果我使用^updates to the latest minor version),但是我得到的版本0.1.1是错误的。 我不明白的是,当我将依赖项更改为“^2.0.0”或“^1.0.0”并运行

粉笔更新为正确的版本2.4.2或1.1.3。
是否有一种方法可以使用npm update同时将所有软件包更新到dependencies中设置的正确版本,或者这只是一个bug,或者可能与chalk有关?

1.0之前的版本处理方式不同,请参见例如。好的,我看到了非常感谢!
npm update chalk
npm update