Angular2 Quckstart npm start不工作

Angular2 Quckstart npm start不工作,angular,Angular,尝试在Angular2快速启动应用程序上运行npm start时出错。我已经将node.js和npm更新到了最新版本,更新后我删除了node modules文件夹并运行了npm安装,它仍然抛出错误 npm ERR! Failed at the angular2-website@1.0.0 prestart script 'npm run build'. 我的package.json文件似乎很好。有人知道如何解决这个问题吗 "scripts": { "build": "tsc -p src/",

尝试在Angular2快速启动应用程序上运行npm start时出错。我已经将node.js和npm更新到了最新版本,更新后我删除了node modules文件夹并运行了npm安装,它仍然抛出错误

npm ERR! Failed at the angular2-website@1.0.0 prestart script 'npm run build'.
我的package.json文件似乎很好。有人知道如何解决这个问题吗

"scripts": {
"build": "tsc -p src/",
"build:watch": "tsc -p src/ -w",
"build:e2e": "tsc -p e2e/",
"serve": "lite-server -c=bs-config.json",
"serve:e2e": "lite-server -c=bs-config.e2e.json",
"prestart": "npm run build",
"start": "concurrently \"npm run tsc:watch\" \"npm run lite-server\"",
"pree2e": "npm run build:e2e",
"e2e": "concurrently \"npm run serve:e2e\" \"npm run protractor\" --kill-others --success first",
"preprotractor": "webdriver-manager update",
"protractor": "protractor protractor.config.js",
"pretest": "npm run build",
"test": "concurrently \"npm run build:watch\" \"karma start karma.conf.js\"",
"pretest:once": "npm run build",
"test:once": "karma start karma.conf.js --single-run",
"lint": "tslint ./src/**/*.ts -t verbose"

},

在管理模式下运行npm安装,即unix/linux/mac上的sudo,Windows上的管理员模式。

那么,完整的错误消息是什么?如果只执行npm run build,会发生什么情况?npm run build仍然会抛出错误,因此我将其从package.json文件中删除。现在,当我运行NPMStart时,它正在启动web服务器并按其应该的方式运行。谢谢。为什么要当管理员?我总是将node作为普通用户应用程序安装,为什么要将您的系统信任于npm?