Node.js npm开始在tsc和&;同时

Node.js npm开始在tsc和&;同时,node.js,angular,npm,typescript-typings,tsc,Node.js,Angular,Npm,Typescript Typings,Tsc,我一直在试着运行npm start,我不断地得到以下错误 19 error node v4.2.0 20 error npm v3.10.5 21 error code ELIFECYCLE 22 error resume-editor@1.0.0 start: `tsc && concurrently "npm run tsc:w" "npm run lite" ` 22 error Exit status 1 23 error Failed at the resume-ed

我一直在试着运行npm start,我不断地得到以下错误

19 error node v4.2.0
20 error npm  v3.10.5
21 error code ELIFECYCLE
22 error resume-editor@1.0.0 start: `tsc && concurrently "npm run tsc:w" "npm run lite" `
22 error Exit status 1
23 error Failed at the resume-editor@1.0.0 start script 'tsc && concurrently "npm run tsc:w" "npm run lite" '.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the resume-editor package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     tsc && concurrently "npm run tsc:w" "npm run lite"
23 error You can get information on how to open an issue for this project with:
23 error     npm bugs resume-editor
23 error Or if that isn't available, you can get their info via:
23 error     npm owner ls resume-editor
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
我尝试了以下方法: npm安装tsc(&最新版本) npm安装--保存打字 打字装置 npm同时安装 npm安装 npm运行打字 npm运行tsc(此处有错误)

似乎没有什么能让npm开始工作。 更让人困惑的是,在我退出并尝试运行node server.js之前,一切都运行得很好。 然后,一旦我试图切换回npm开始,我就一直收到这些错误

Package.json:

{
  "name": "resume-editor",
  "version": "1.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.0.0-rc.4",
    "@angular/compiler": "2.0.0-rc.4",
    "@angular/core": "2.0.0-rc.4",
    "@angular/forms": "0.2.0",
    "@angular/http": "2.0.0-rc.4",
    "@angular/platform-browser": "2.0.0-rc.4",
    "@angular/platform-browser-dynamic": "2.0.0-rc.4",
    "@angular/router": "3.0.0-beta.1",
    "@angular/router-deprecated": "2.0.0-rc.2",
    "@angular/upgrade": "2.0.0-rc.4",
    "angular2-in-memory-web-api": "0.0.14",
    "body-parser": "^1.4.3",
    "bootstrap": "^3.3.6",
    "concurrently": "^2.2.0",
    "core-js": "^2.4.0",
    "express": "^4.13.4",
    "method-override": "^2.1.3",
    "mongoose": "^4.4.12",
    "morgan": "^1.1.1",
    "reflect-metadata": "^0.1.3",
    "rxjs": "5.0.0-beta.6",
    "systemjs": "0.19.27",
    "tsc": "^1.20150623.0",
    "typescript": "^1.8.10",
    "typings": "^1.3.2",
    "zone.js": "^0.6.12"
  },
  "devDependencies": {
    "concurrently": "^2.0.0",
    "lite-server": "^2.2.0",
    "typescript": "^1.8.10",
    "typings": "^1.0.4"
  }
}

注意:我有node和npm的最新版本。

您安装了一个名为TSC的包,它可能与typescript包
TSC
中的命令行冲突。尝试卸载TSC软件包并重新运行

如果您安装了一个名为TSC的软件包,它可能与typescript软件包中的命令行发生冲突。尝试卸载TSC软件包并重新运行

您需要全局安装
typescript


npm安装-g typescript

您需要全局安装
typescript



npm安装-g typescript

确保项目根目录的路径中没有空格。重命名祖先目录,使其不包含空格。

确保项目根目录的路径中没有空格。重命名祖先目录,使其不包含空格。

package.json的脚本部分是什么样子的?此日志输出之前是否有错误消息?可能您的TypeScript文件中有错误。@DaveV刚刚将其添加到原始Post中。您的package.json的脚本部分是什么样子的?此日志输出之前是否有错误消息?您可能在类型脚本文件中有错误。@DaveV刚刚将其添加到原始的postinInstall TSC中,然后尝试运行npm start?是的,我试过了,结果还是一样。卸载TSC,然后试着运行npm start?是的,我尝试了同样的结果。这将是我的下一个建议,但不应该是必需的,因为他有“tsc”:“tsc”在脚本中…@DaveV我不相信终端可以访问本地安装,尽管这样做,我不太了解NPM来解释为什么,但它是有效的。他是按照Angular的快速入门设置来做的…所以我不知道为什么会失败错误消息还有其他内容吗?也许是前几行?我在这里,我在一个loss@DaveV不,我只想说这些。这很奇怪,因为在我运行node server.jsp之前,它就可以正常工作。这将是我的下一个建议,但它不应该是必需的,因为他在脚本中有“tsc”:“tsc”…@DaveV我不相信终端可以访问本地安装,尽管这样做,我对NPM不太了解,无法解释原因,但它确实有效。他是按照Angular的快速入门设置来做的…所以我不知道为什么会失败错误消息还有其他内容吗?也许是前几行?我在这里,我在一个loss@DaveV不,我只想说这些。这很奇怪,因为在我运行node server.js之前,它就可以正常工作了