microsoft / TypeScriptSamples

Community Driven Samples for TypeScript
3.19k stars 1.78k forks source link

Angular2: Failed at the typescript-angular2@1.0.0 start script #78

Open Abdelkrim opened 8 years ago

Abdelkrim commented 8 years ago

I have executed the setup:

npm install
npm start

Then an issue occured. I have uploaded the log file

> typescript-angular2@1.0.0 start C:\TypeScriptSamples\angular2
> node node_modules/typescript/lib/tsc.js && node node_modules/http-server/bin/http-server -o

node_modules/angular2/src/core/facade/promise.d.ts(1,10): error TS2661: Cannot re-export name that is not defined in the module.

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\app\\nodejs\\node.exe" "C:\\app\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
npm ERR! node v4.0.0
npm ERR! npm  v2.14.2
npm ERR! code ELIFECYCLE
npm ERR! typescript-angular2@1.0.0 start: `node node_modules/typescript/lib/tsc.js && node node_modules/http-server/bin/http-server -o`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the typescript-angular2@1.0.0 start script 'node node_modules/typescript/lib/tsc.js && node node_modules/http-server/bin/http-server -o'.
npm ERR! This is most likely a problem with the typescript-angular2 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node node_modules/typescript/lib/tsc.js && node node_modules/http-server/bin/http-server -o
npm ERR! You can get their info via:
npm ERR!     npm owner ls typescript-angular2
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\TypeScriptSamples\angular2\npm-debug.log

npm-debug.log.txt

Thank you in advance for your help

Abdelkrim

mhegazy commented 8 years ago

Thanks @Abdelkrim, we will update the sample. for now please head over to the angular2 site, the sample there is uptodate: https://angular.io/docs/ts/latest/quickstart.html

Abdelkrim commented 8 years ago

Thank you, i'll look at the tutorial. KR A.

0x333333 commented 8 years ago

Hi, I'm new to Typescript, it's an awesome sample list! Unfortunately I ran into the same issue here, I'd like to know is there any update? Or can you give me some hints so that I can try to fix this?

Thanks a lot! Zhipeng

GabrielDelepine commented 8 years ago

Hi,

I also experience this issue.

Tried with :

npm 3.8.9
node 6.2.0

And with :

npm 2.15.5
node 4.4.5
firminochangani commented 8 years ago

I experienced the same issue. Node 5.1.0, npm version: 3.3.12