我试图做一个'npm test',但是我有这个问题。我最近更新为angular7。npm start没问题。
“ C:\ Users \ jfernabe \ Desktop \ Projeto Container Bots \ front-spa-appchatbot \ node_modules @ angular \ cli \ utilities \ app-utils.js:10
抛出新的SilentError(chalk_1.default.red('无法在.angular-cli.json
中找到任何应用。'));
^
SilentError:无法在.angular-cli.json
中找到任何应用。”
这是我的package.json
{
"name": "frontSpaAppchatbot",
"version": "0.0.0",
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "webpack-dev-server",
"build": "webpack",
"test": "karma start ./karma.conf.js",
"lint": "ng lint",
"e2e": "protractor ./protractor.conf.js",
"pree2e": "webdriver-manager update --standalone false --gecko false --quiet",
"prettier": "prettier --write ./src/**/*.ts"
},
"private": true,
"dependencies": {
"@angular/animations": "5.0.0",
"@angular/common": "5.0.0",
"@angular/compiler": "5.0.0",
"@angular/core": "5.0.0",
"@angular/forms": "5.0.0",
"@angular/http": "5.0.0",
"@angular/platform-browser": "5.0.0",
"@angular/platform-browser-dynamic": "5.0.0",
"@angular/router": "5.0.0",
"angl-spawebbgrl": "5.5.7",
"bootstrap": "4.2.1",
"core-js": "2.4.1",
"ng2-translate": "5.0.0",
"rxjs": "5.5.2",
"zone.js": "0.8.14"
},
"devDependencies": {
"@angular-devkit/core": "0.6.8",
"@angular/cli": "1.5.3",
"@angular/compiler-cli": "5.0.0",
"@angular/language-service": "5.0.0",
"@types/jasmine": "2.5.53",
"@types/jasminewd2": "2.0.2",
"@types/node": "6.0.60",
"angl-archtslint": "1.2.4",
"angular2-router-loader": "0.3.5",
"angular2-template-loader": "0.6.2",
"autoprefixer": "6.5.3",
"awesome-typescript-loader": "3.2.3",
"circular-dependency-plugin": "3.0.0",
"clean-webpack-plugin": "0.1.19",
"codelyzer": "4.3.0",
"copy-webpack-plugin": "4.0.1",
"css-loader": "0.28.1",
"cssnano": "3.10.0",
"exports-loader": "0.6.3",
"favicons-webpack-plugin": "0.0.7",
"file-loader": "0.10.0",
"html-loader": "0.5.5",
"html-webpack-plugin": "2.29.0",
"husky": "1.0.0-rc.9",
"image-webpack-loader": "4.3.1",
"istanbul-instrumenter-loader": "2.0.0",
"jasmine-core": "2.6.2",
"jasmine-spec-reporter": "4.1.0",
"karma": "1.7.0",
"karma-cli": "1.0.1",
"karma-coverage-istanbul-reporter": "1.2.1",
"karma-jasmine": "1.1.0",
"karma-jasmine-html-reporter": "0.2.2",
"karma-phantomjs-launcher": "1.0.4",
"less-loader": "4.0.5",
"postcss-loader": "1.3.3",
"postcss-url": "5.1.2",
"prettier": "1.13.5",
"pretty-quick": "1.6.0",
"protractor": "5.1.2",
"raw-loader": "0.5.1",
"sass-loader": "6.0.3",
"source-map-loader": "0.2.0",
"style-loader": "0.13.1",
"stylus-loader": "3.0.1",
"svg-url-loader": "2.3.2",
"ts-node": "3.2.0",
"tslint": "5.7.0",
"typescript": "2.8.1",
"uglifyjs-webpack-plugin": "1.0.1",
"url-loader": "0.6.0",
"webpack": "3.6.0",
"webpack-concat-plugin": "1.4.0",
"webpack-dev-server": "2.7.1",
"webpack-merge": "4.1.1",
"webpack-spritesmith": "0.4.1"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
}
不知道该怎么办,请帮帮我。...