DanWahlin / Angular-JumpStart

Angular and TypeScript JumpStart example application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

KrunalDholakiya opened this issue · comments

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.0pretsc: 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.0tsc: 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.0tsc: 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.0tsc: 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. (/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. (/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 ]

Same here. What version of node is required? I'm using 0.12.2.

0 info it worked if it ends with ok
1 verbose cli [ 'node',
1 verbose cli   '/Users/jboothe/.nvm/versions/node/v0.12.2/bin/npm',
1 verbose cli   'run',
1 verbose cli   'tsc' ]
2 info using npm@3.3.12
3 info using node@v0.12.2
4 verbose run-script [ 'pretsc', 'tsc', 'posttsc' ]
5 info lifecycle QuickStartTS@1.0.0~pretsc: QuickStartTS@1.0.0
6 silly lifecycle QuickStartTS@1.0.0~pretsc: no script for pretsc, continuing
7 info lifecycle QuickStartTS@1.0.0~tsc: QuickStartTS@1.0.0
8 verbose lifecycle QuickStartTS@1.0.0~tsc: unsafe-perm in lifecycle true
9 verbose lifecycle QuickStartTS@1.0.0~tsc: PATH: /Users/jboothe/.nvm/versions/node/v0.12.2/lib/node_modules/npm/bin/node-gyp-bin:/Users/jboothe/Sites/_Projects/Angular2/QuickStartTS/node_modules/.bin:/Users/jboothe/.rvm/gems/ruby-2.1.2/bin:/Users/jboothe/.rvm/gems/ruby-2.1.2@global/bin:/Users/jboothe/.rvm/rubies/ruby-2.1.2/bin:/Users/jboothe/.nvm/versions/node/v0.12.2/bin:/usr/local/heroku/bin:/Users/jboothe/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/Cellar/mongodb/2.4.9/bin:/usr/local/git/bin:/usr/local/bin:/usr/local/git/bin:/Users/jboothe/Library/Android/sdk:/tools:/Users/jboothe/Library/Android/sdk:/platform-tools:/usr/local/Cellar/ant/1.9.3/bin:/Users/jboothe/local/lib/node_modules/grunt-cli/bin:/Users/jboothe/Applications/Git-TF:/Users/jboothe/.rvm/bin
10 verbose lifecycle QuickStartTS@1.0.0~tsc: CWD: /Users/jboothe/Sites/_Projects/Angular2/QuickStartTS
11 silly lifecycle QuickStartTS@1.0.0~tsc: Args: [ '-c', 'tsc -p src -w' ]
12 silly lifecycle QuickStartTS@1.0.0~tsc: Returned: code: 1  signal: null
13 info lifecycle QuickStartTS@1.0.0~tsc: Failed to exec tsc script
14 verbose stack Error: QuickStartTS@1.0.0 tsc: `tsc -p src -w`
14 verbose stack Exit status 1
14 verbose stack     at EventEmitter.<anonymous> (/Users/jboothe/.nvm/versions/node/v0.12.2/lib/node_modules/npm/lib/utils/lifecycle.js:232:16)
14 verbose stack     at EventEmitter.emit (events.js:110:17)
14 verbose stack     at ChildProcess.<anonymous> (/Users/jboothe/.nvm/versions/node/v0.12.2/lib/node_modules/npm/lib/utils/spawn.js:24:14)
14 verbose stack     at ChildProcess.emit (events.js:110:17)
14 verbose stack     at maybeClose (child_process.js:1015:16)
14 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
15 verbose pkgid QuickStartTS@1.0.0
16 verbose cwd /Users/jboothe/Sites/_Projects/Angular2/QuickStartTS
17 error Darwin 15.0.0
18 error argv "node" "/Users/jboothe/.nvm/versions/node/v0.12.2/bin/npm" "run" "tsc"
19 error node v0.12.2
20 error npm  v3.3.12
21 error code ELIFECYCLE
22 error QuickStartTS@1.0.0 tsc: `tsc -p src -w`
22 error Exit status 1
23 error Failed at the QuickStartTS@1.0.0 tsc script 'tsc -p src -w'.
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 QuickStartTS package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error     tsc -p src -w
23 error You can get their info via:
23 error     npm owner ls QuickStartTS
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Found it. Typo in tsconfig.json.

Ok.

On Fri, Dec 11, 2015 at 6:15 AM, Jeff Boothe notifications@github.com
wrote:

Found it. Typo in tsconfig.json.


Reply to this email directly or view it on GitHub
#9 (comment)
.

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

This particular project doesn't have an issue with tsconfig.json (using it this week for a training class actually). I don't know about the Quickstart though since I don't work with that project.