我的环境:
- 节点 v6.17.1
- npm v6.14.4
我跑了npm install --save --save-exact mjml@4.5.1
,然后我的package.json
表演
"mjml": "4.5.1",
我的package-lock.json
节目:
"mjml": {
"version": "4.5.1",
"resolved": "https://npm.alertmd.io/mjml/-/mjml-4.5.1.tgz",
"integrity": "sha512-sQVbQ30UwxMpjzkTPdU9RD5OC9ikEjtZEY+zqAioHXAtEmiO0L0eUdfpcb0ni1pu09hMWU4iqRtOyxLgZIOThg==",
"requires": {
"mjml-accordion": "4.5.1",
"mjml-body": "4.5.1",
"mjml-button": "4.5.1",
"mjml-carousel": "4.5.1",
"mjml-cli": "4.5.1",
"mjml-column": "4.5.1",
"mjml-core": "4.5.1",
"mjml-divider": "4.5.1",
"mjml-group": "4.5.1",
"mjml-head": "4.5.1",
"mjml-head-attributes": "4.5.1",
"mjml-head-breakpoint": "4.5.1",
"mjml-head-font": "4.5.1",
"mjml-head-preview": "4.5.1",
"mjml-head-style": "4.5.1",
"mjml-head-title": "4.5.1",
"mjml-hero": "4.5.1",
"mjml-image": "4.5.1",
"mjml-migrate": "4.5.0",
"mjml-navbar": "4.5.1",
"mjml-raw": "4.5.1",
"mjml-section": "4.5.1",
"mjml-social": "4.5.1",
"mjml-spacer": "4.5.1",
"mjml-table": "4.5.1",
"mjml-text": "4.5.1",
"mjml-validator": "4.5.0",
"mjml-wrapper": "4.5.1"
}
}
此外,我的其他依赖项都没有 mjml 作为子依赖项。
但是,当我跑步时,npm show mjml version
我得到:4.6.2
.
我认为使用--save-exact
会安装确切的版本 4.5.1,所以我不明白什么?