question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed at the angular2-quickstart@1.0.0 tsc script 'tsc -p src -w'.

See original GitHub issue

I followed angular2 quickstart guide.I have updated my npm and node, but still I’m getting error while running this command. Here is debug.log file 0 info it worked if it ends with ok 1 verbose cli [ ‘node’, ‘/usr/local/bin/npm’, ‘run’, ‘tsc’ ] 2 info using npm@3.4.0 3 info using node@v0.10.25 4 verbose node symlink /usr/bin/node 5 verbose run-script [ ‘pretsc’, ‘tsc’, ‘posttsc’ ] 6 info lifecycle angular2-quickstart@1.0.0~pretsc: angular2-quickstart@1.0.0 7 silly lifecycle angular2-quickstart@1.0.0~pretsc: no script for pretsc, continuing 8 info lifecycle angular2-quickstart@1.0.0~tsc: angular2-quickstart@1.0.0 9 verbose lifecycle angular2-quickstart@1.0.0~tsc: unsafe-perm in lifecycle true 10 verbose lifecycle angular2-quickstart@1.0.0~tsc: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/home/krunal/angular2-quickstart/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/android-sdk/tools:/opt/android-sdk/platform-tools:/opt/node/bin:/home/krunal/Downloads/nwjs-v0.12.3-linux-x64 11 verbose lifecycle angular2-quickstart@1.0.0~tsc: CWD: /home/krunal/angular2-quickstart 12 silly lifecycle angular2-quickstart@1.0.0~tsc: Args: [ ‘-c’, ‘tsc -p src -w’ ] 13 silly lifecycle angular2-quickstart@1.0.0~tsc: Returned: code: 8 signal: null 14 info lifecycle angular2-quickstart@1.0.0~tsc: Failed to exec tsc script 15 verbose stack Error: angular2-quickstart@1.0.0 tsc: tsc -p src -w 15 verbose stack Exit status 8 15 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:232:16) 15 verbose stack at EventEmitter.emit (events.js:98:17) 15 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14) 15 verbose stack at ChildProcess.EventEmitter.emit (events.js:98:17) 15 verbose stack at maybeClose (child_process.js:743:16) 15 verbose stack at Process.ChildProcess._handle.onexit (child_process.js:810:5) 16 verbose pkgid angular2-quickstart@1.0.0 17 verbose cwd /home/krunal/angular2-quickstart 18 error Linux 3.16.0-46-generic 19 error argv “node” “/usr/local/bin/npm” “run” “tsc” 20 error node v0.10.25 21 error npm v3.4.0 22 error code ELIFECYCLE 23 error angular2-quickstart@1.0.0 tsc: tsc -p src -w 23 error Exit status 8 24 error Failed at the angular2-quickstart@1.0.0 tsc script ‘tsc -p src -w’. 24 error Make sure you have the latest version of node.js and npm installed. 24 error If you do, this is most likely a problem with the angular2-quickstart package, 24 error not with npm itself. 24 error Tell the author that this fails on your system: 24 error tsc -p src -w 24 error You can get their info via: 24 error npm owner ls angular2-quickstart 24 error There is likely additional logging output above. 25 verbose exit [ 1, true ]

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
greenguy33commented, Feb 22, 2017

@jboothe I’m having the exact same issue. Can you elaborate as to the typo/how you fixed it in the JSON file?

1reaction
jboothecommented, Dec 11, 2015

Found it. Typo in tsconfig.json.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm start Fails on command tsc -p src/ · Issue #457 - GitHub
I'm working with: node -v v7.10.0 npm -v 4.2.0 I execute next commands git clone https://github.com/angular/quickstart.git quickstart cd ...
Read more >
Failed at the angular-quickstart@1.0.0 build script 'tsc -p src/'
Base on error TS2307: Cannot find module '@anguler/core'. , you may have a typo, try with @angular/core .
Read more >
tsc-watch - npm
The nodemon for TypeScript. tsc-watch starts a TypeScript compiler with --watch parameter, with the ability to react to compilation status.
Read more >
tsc-watch - npm Package Health Analysis - Snyk
The TypeScript compiler with onSuccess command. Visit Snyk Advisor to see a full health score report for tsc-watch, including popularity, security, maintenance ...
Read more >
@fezvrasta/tsc-silent | Yarn - Package Manager
tsc -silent. The purpose of the wrapper is to execute TypeScript compiler but suppress some error messages coming from certain files/folders.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found