當我執行我的package.json的NPM安裝時,NPM始終會自動選擇某些軟件包的較新版本。使NPM安裝特定版本package.json
儘管我制定了這些軟件包的特定版本,但確實如此。我如何強制NPM只採取特定版本?
我dependencies.json:
"dependencies": {
"@angular/common": "2.0.0-rc.5",
"@angular/compiler": "2.0.0-rc.5",
"@angular/core": "2.0.0-rc.5",
"@angular/forms": "2.0.0-rc.5",
"@angular/http": "2.0.0-rc.5",
"@angular/platform-browser": "2.0.0-rc.5",
"@angular/platform-browser-dynamic": "2.0.0-rc.5",
"@angular/router": "3.0.0-rc.1",
"@angular/upgrade": "2.0.0-rc.5",
"angular2-meteor": "0.7.0-beta.1",
"angular2-material/core": "2.0.0-alpha.7-9",
"angular2-material/grid-list": "2.0.0-alpha.7-9",
"angular2-material/card": "2.0.0-alpha.7-9",
"angular2-material/button": "2.0.0-alpha.7-9",
"angular2-material/icon": "2.0.0-alpha.7-9",
"angular2-material/checkbox": "2.0.0-alpha.7-9",
"angular2-material/sidenav": "2.0.0-alpha.7-9",
"angular2-material/menu": "2.0.0-alpha.7-9",
"angular2-material/input": "2.0.0-alpha.7-9",
"angular2-material/toolbar": "2.0.0-alpha.7-9",
"angular2-material/slider": "2.0.0-alpha.7-9",
"angular2-meteor-polyfills": "0.1.1",
"bcrypt": "0.8.7",
"client": "0.0.1",
"hammerjs": "^2.0.8",
"meteor-node-stubs": "~0.2.0",
"reflect-metadata": "0.1.8",
"rxjs": "5.0.0-beta.11",
"tether": "1.3.6",
"zone.js": "0.6.17"
}
當我執行NPM安裝(拆卸node_modules文件夾後),NPM安裝angular2和角材料的新版本,即使我需要的特定的人。