从RC5升级到RC6需要做些什么?我不是指应用程序代码更改。我还没有那么远。我的意思是如何安装RC 6?
我找到了image in this reddit post。
我已将package.json更改为该图像。然后我猜我需要运行一个终端命令来安装我的package.json中的东西?像npm install
这样的东西?这是我的代码:
{
"name": "the-vegan-repository",
"version": "1.0.0",
"scripts": {
"lite-server-test": "lite-server --config=liteserver-test-config.json",
"test": "tsc && concurrently \"npm run tsc:w\" \"npm run lite-server-test\" ",
"start": "tsc && concurrently \"npm run tsc:w\" \"npm run lite\" \"sass --watch app\" \"sass --watch index.scss\" \"sass --watch global-constants.scss\" ",
"lite": "lite-server",
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"typings": "typings"
},
"license": "ISC",
"dependencies": {
"@angular/common": "2.0.0-rc.6",
"@angular/compiler": "2.0.0-rc.6",
"@angular/core": "2.0.0-rc.6",
"@angular/forms": "^2.0.0-rc.6",
"@angular/http": "2.0.0-rc.6",
"@angular/platform-browser": "2.0.0-rc.6",
"@angular/platform-browser-dynamic": "2.0.0-rc.6",
"@angular/router": "3.0.0-rc.2",
"@angular/router-deprecated": "2.0.0-rc.2",
"@angular/upgrade": "2.0.0-rc.6",
"angular2-google-maps": "^0.13.0",
"angular2-in-memory-web-api": "0.0.15",
"angular2-modal": "^1.1.5",
"bootstrap": "^3.3.6",
"core-js": "^2.4.0",
"jquery": "v3.1.0",
"ng2-bs3-modal": "^0.7.0",
"ng2-popover": "0.0.8",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.11",
"systemjs": "0.19.27",
"zone.js": "^0.6.17"
},
"devDependencies": {
"codelyzer": "0.0.26",
"concurrently": "^2.0.0",
"jasmine-core": "2.4.1",
"lite-server": "^2.2.0",
"tslint": "^3.13.0",
"typescript": "^1.8.10",
"typings": "^1.0.4"
}
}
答案 0 :(得分:0)
假设您的package.json是正确的,您将要删除node_modules目录并运行npm install
以仅下载新包。这样你就会知道你是否错过了什么。
现在,角度2.0.1已经出来,您可以在angular.io https://angular.io/docs/ts/latest/tutorial/上查看Tower of Heroes演示,或者将版本更新为'*'以获取您想要的最新版本并运行{{ 1}}用这个答案的绝对最新版本替换它们。 How do I update each dependency in package.json to the latest version?
答案 1 :(得分:-1)
您可以使用the QuickStart替换现有内容。