Failed at the angular2-quickstart@1.0.0 tsc script 'tsc -p src -w'.
See original GitHub issueI 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:
- Created 8 years ago
- Comments:5 (1 by maintainers)
Top GitHub Comments
@jboothe I’m having the exact same issue. Can you elaborate as to the typo/how you fixed it in the JSON file?
Found it. Typo in tsconfig.json.