我是Angular和Node的新手,并且正在跟随官方Angular2 documentation。
在第1步中,建议您通过复制样本来创建 package.json , tsconfig.json 和 systemjs.config.js 代码(我已经完成了)。然后,您将被指示从指向这些文件所在文件夹的命令propmt运行npm install
。
所以,我已经使用Node.js v7.0 for Windows完成了这个(完全按照指示),并且在完成命令后,我的 node_modules 文件夹现在包含267个子文件夹!
这不可能是正确的,可以吗?这是 package.json 代码:
{
"name": "angtest",
"version": "1.0.0",
"scripts": {
"start": "tsc && concurrently \"tsc -w\" \"lite-server\" ",
"lite": "lite-server",
"tsc": "tsc",
"tsc:w": "tsc -w"
},
"licenses": [
{
"type": "MIT",
"url": "https://github.com/angular/angular.io/blob/master/LICENSE"
}
],
"dependencies": {
"@angular/common": "~2.1.1",
"@angular/compiler": "~2.1.1",
"@angular/core": "~2.1.1",
"@angular/forms": "~2.1.1",
"@angular/http": "~2.1.1",
"@angular/platform-browser": "~2.1.1",
"@angular/platform-browser-dynamic": "~2.1.1",
"@angular/router": "~3.1.1",
"@angular/upgrade": "~2.1.1",
"angular-in-memory-web-api": "~0.1.13",
"core-js": "^2.4.1",
"reflect-metadata": "^0.1.8",
"rxjs": "5.0.0-beta.12",
"systemjs": "0.19.39",
"zone.js": "^0.6.25"
},
"devDependencies": {
"@types/core-js": "^0.9.34",
"@types/node": "^6.0.45",
"concurrently": "^3.0.0",
"lite-server": "^2.2.2",
"typescript": "^2.0.3"
}
}