我是angular2的新手,我有角度2包的问题。我一直试图解决这个问题而且我无法解决。我正在做一些任务/项目,老师提供package.json
任务。我在本地安装npm项目文件夹以及全局,但我无法启动本地服务器。我在窗口运行程序。问题出在这里,当我运行npm start或npm start -server时出现以下错误:
npm ERR! node v6.9.2
npm ERR! npm v2.12.1
npm ERR! code ELIFECYCLE
npm ERR! angular2-boilerplate@1.0.0 start: `gulp`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular2-boilerplate@1.0.0 start script 'gulp'.
npm ERR! This is most likely a problem with the angular2-boilerplate package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! gulp
npm ERR! You can get their info via:
npm ERR! npm owner ls angular2-boilerplate
npm ERR! There is likely additional logging output above.
package.json
文件是
{
"name": "angular2-boilerplate",
"version": "1.0.0",
"scripts": {
"start": "gulp",
"gulp": "gulp",
"watch": "gulp watch",
"clean": "gulp clean",
"typings": "typings",
"postinstall": "typings install"
},
"license": "MIT",
"dependencies": {
"@angular/common": "2.0.0-rc.1",
"@angular/compiler": "2.0.0-rc.1",
"@angular/core": "2.0.0-rc.1",
"@angular/http": "2.0.0-rc.1",
"@angular/platform-browser": "2.0.0-rc.1",
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
"@angular/router": "2.0.0-rc.1",
"@angular/router-deprecated": "2.0.0-rc.1",
"@angular/upgrade": "2.0.0-rc.1",
"systemjs": "0.19.27",
"es6-shim": "^0.35.0",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.12"
},
"devDependencies": {
"babel-core": "^6.0.15",
"babel-preset-es2015": "^6.0.15",
"browser-sync": "^2.10.1",
"del": "^2.0.0",
"gulp": "^3.9.0",
"gulp-autoprefixer": "^3.1.0",
"gulp-concat": "^2.6.0",
"gulp-concat-css": "^2.2.0",
"gulp-inline-ng2-template": "^1.1.2",
"gulp-minify-css": "^1.2.1",
"gulp-typescript": "^2.10.0",
"gulp-watch": "^4.3.5",
"stream-series": "^0.1.1",
"typescript": "^1.7.3",
"typings":"^0.6.8",
"systemjs-builder": "^0.15.15"
}
}