我在命令行中收到以下警告:
$ npm install
npm WARN Invalid version: "x.0.0"
npm WARN myFirstAngular2Project No description
npm WARN myFirstAngular2Project No repository field.
npm WARN myFirstAngular2Project No README data
npm WARN myFirstAngular2Project No license field.
请帮忙! :(
答案 0 :(得分:-1)
的package.json:
{
"name": "angulartypescript.com",
"version": "x.0.0",
"scripts": {
"start": "tsc && concurrently \"npm run tsc:w\" \"npm run lite\" ",
"lite": "lite-server",
"postinstall": "typings install",
"tsc": "tsc",
"tsc:w": "tsc -w",
"typings": "typings"
},
"license": "ISC",
"dependencies": {
"@angular/common": "2.X.X",
"@angular/compiler": "2.X.X",
"@angular/core": "2.X.X",
"@angular/http": "2.X.X",
"@angular/platform-browser": "2.X.X",
"@angular/platform-browser-dynamic": "2.X.X",
"@angular/router": "2.X.X",
"@angular/router-deprecated": "2.X.X",
"@angular/upgrade": "2.X.X",
"systemjs": "X.X.X",
"core-js": "x.x.x",
"reflect-metadata": "x.x.x",
"rxjs": "x.x.x",
"zone.js": "x.x.x",
"angular2-in-memory-web-api": "x.x.x",
"bootstrap": "x.x.x"
},
"devDependencies": {
"concurrently": "x.x.x",
"lite-server": "x.x.x",
"typescript": "x.x.x",
"typings":"x.x.x"
}
}