尝试在npm start
不更新节点版本或 npm 版本的情况下运行时出现以下错误。
错误
npm 错误!Windows_NT 6.1.7601 npm 错误!argv "C:\Work\node-v6.10.3-win-x64\node-v6.10.3-win-x64\node.exe" " C:\Work\node-v6.10.3-win-x64\node-v6 .10.3-win-x64\node_modules\npm\bin\np m-cli.js" "开始" npm 错误!节点 v6.10.3 npm 错误!npm v3.10.10 npm 错误!代码 ELIFECYCLE npm 错误!ucps-online-client@1.0.0 开始:
ng serve --proxy-config proxy.conf.jso n
npm 错误!退出状态 1 npm ERR!npm 错误!ucps-online-client@1.0.0 启动脚本“ng serve --proxy-c onfig proxy.conf.json”失败。npm 错误!确保您安装了最新版本的 node.js 和 npm。npm 错误!如果你这样做了,这很可能是 ucps-online-client 包 npm ERR 的问题!不是 npm 本身。npm 错误!告诉作者这在您的系统上失败:npm ERR!ng serve --proxy-config proxy.conf.json npm ERR!您可以通过以下方式获取有关如何为此项目打开问题的信息:npm ERR!npm 错误 ucps-online-client npm 错误!或者,如果这不可用,您可以通过以下方式获取他们的信息:npm ERR!npm 所有者 ls ucps-online-client npm ERR!上面可能有额外的日志输出。
npm 错误!请在任何支持请求中包含以下文件:npm ERR!C:\Work\workspace_Nov9_commit\ucps-online-parent\ucps-online-client\npm-debug.log
包.json
{
"name": "ucps-online-client",
"version": "1.0.0",
"private": true,
"license": "MIT",
"angular-cli": {},
"scripts": {
"ng": "ng",
"start": "ng serve --proxy-config proxy.conf.json",
"lint": "ng lint"
},
"dependencies": {
"@angular/animations": "^4.0.1",
"@angular/common": "^4.0.0",
"@angular/compiler": "^4.0.0",
"@angular/core": "^4.0.0",
"@angular/forms": "^4.0.0",
"@angular/http": "^4.0.0",
"@angular/platform-browser": "^4.0.0",
"@angular/platform-browser-dynamic": "^4.0.0",
"@angular/router": "^4.0.0",
"bootstrap": "3.3.7",
"core-js": "^2.4.1",
"font-awesome": "4.6.3",
"jquery": "2.2.3",
"latest-version": "^3.1.0",
"moment": "2.17.1",
"ng2-bootstrap": "1.6.3",
"ng2-datepicker": "^1.8.3",
"ng2-datetime-picker": "^0.12.5",
"ng2-pagination": "^2.0.2",
"primeng": "4.1.0",
"rxjs": "^5.0.1",
"ts-helpers": "^1.1.1",
"zone.js": "^0.8.5"
},
"devDependencies": {
"@angular/compiler-cli": "^4.0.0",
"@types/node": "^7.0.12",
"@angular/cli": "^1.0.0",
"codelyzer": "^2.1.1",
"ts-node": "^3.0.2",
"tslint": "^5.0.0",
"typescript": "^2.2.2"
},
"engines": {
"node": ">= 6.9.1",
"npm": ">= 3"
}
}