Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在角度上失败了-quickstart@1.0.0生成脚本“tsc-psrc/”_Javascript_Node.js_Angular - Fatal编程技术网

Javascript 在角度上失败了-quickstart@1.0.0生成脚本“tsc-psrc/”

Javascript 在角度上失败了-quickstart@1.0.0生成脚本“tsc-psrc/”,javascript,node.js,angular,Javascript,Node.js,Angular,我已经学习了Angular2官方教程,现在它已经被打破了。我上一次使用它是在几周前,我通过了7个步骤,它成功了。现在我明白了: cchilders:~/tutorials/javascript/angular-2-js/official-tutorial/src (master) $ npm start > angular-quickstart@1.0.0 prestart /home/cchilders/tutorials/javascript/angular-2-js/offici

我已经学习了Angular2官方教程,现在它已经被打破了。我上一次使用它是在几周前,我通过了7个步骤,它成功了。现在我明白了:

cchilders:~/tutorials/javascript/angular-2-js/official-tutorial/src (master) 
$ npm start

> angular-quickstart@1.0.0 prestart /home/cchilders/tutorials/javascript/angular-2-js/official-tutorial/src
> npm run build


> angular-quickstart@1.0.0 build /home/cchilders/tutorials/javascript/angular-2-js/official-tutorial/src
> tsc -p src/

src/app/app.component.ts(74,19): error TS1109: Expression expected.
src/app/hero.service.ts(1,28): error TS2307: Cannot find module '@anguler/core'.

npm ERR! Linux 4.4.0-38-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "run" "build"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! angular-quickstart@1.0.0 build: `tsc -p src/`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the angular-quickstart@1.0.0 build script 'tsc -p src/'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     tsc -p src/
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular-quickstart
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/cchilders/tutorials/javascript/angular-2-js/official-tutorial/src/npm-debug.log

npm ERR! Linux 4.4.0-38-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! angular-quickstart@1.0.0 prestart: `npm run build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the angular-quickstart@1.0.0 prestart script 'npm run build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular-quickstart
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular-quickstart
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/cchilders/tutorials/javascript/angular-2-js/official-tutorial/src/npm-debug.log

我已经在全球范围内安装了TypeScript,并且刚刚更新了npm。

基于错误TS2307:找不到模块“@anguler/core”。您可能有输入错误,请尝试使用@angular/core。

噢,哈哈,是的,出于某种原因,我一直以这种方式错报angular。奇怪的非常感谢。