johnpapa / lite-server

Lightweight node server
MIT License
2.31k stars 267 forks source link

i cant start angular 2 first app #144

Closed RohithSingirikonda closed 5 years ago

RohithSingirikonda commented 6 years ago

Error Log:

0 info it worked if it ends with ok 1 verbose cli [ 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'start' ] 2 info using npm@5.6.0 3 info using node@v8.11.4 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle angular-quickstart@1.0.0~prestart: angular-quickstart@1.0.0 6 verbose lifecycle angular-quickstart@1.0.0~prestart: unsafe-perm in lifecycle true 7 verbose lifecycle angular-quickstart@1.0.0~prestart: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\Rohith\Angular2\test\node_modules.bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jdk1.8.0_121\bin;C:\Program Files\Java\jre1.8.0_121\bin;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Users\ramya\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\ramya\AppData\Roaming\npm 8 verbose lifecycle angular-quickstart@1.0.0~prestart: CWD: D:\Rohith\Angular2\test 9 silly lifecycle angular-quickstart@1.0.0~prestart: Args: [ '/d /s /c', 'npm run build' ] 10 silly lifecycle angular-quickstart@1.0.0~prestart: Returned: code: 0 signal: null 11 info lifecycle angular-quickstart@1.0.0~start: angular-quickstart@1.0.0 12 verbose lifecycle angular-quickstart@1.0.0~start: unsafe-perm in lifecycle true 13 verbose lifecycle angular-quickstart@1.0.0~start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\Rohith\Angular2\test\node_modules.bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Java\jdk1.8.0_121\bin;C:\Program Files\Java\jre1.8.0_121\bin;C:\Program Files\PuTTY\;C:\Program Files\Git\cmd;C:\Program Files\nodejs\;C:\Users\ramya\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\ramya\AppData\Roaming\npm 14 verbose lifecycle angular-quickstart@1.0.0~start: CWD: D:\Rohith\Angular2\test 15 silly lifecycle angular-quickstart@1.0.0~start: Args: [ '/d /s /c', 'concurrently "npm run tsc:w" "npm run lite" ' ] 16 silly lifecycle angular-quickstart@1.0.0~start: Returned: code: 1 signal: null 17 info lifecycle angular-quickstart@1.0.0~start: Failed to exec start script 18 verbose stack Error: angular-quickstart@1.0.0 start: concurrently "npm run tsc:w" "npm run lite" 18 verbose stack Exit status 1 18 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:285:16) 18 verbose stack at emitTwo (events.js:126:13) 18 verbose stack at EventEmitter.emit (events.js:214:7) 18 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 18 verbose stack at emitTwo (events.js:126:13) 18 verbose stack at ChildProcess.emit (events.js:214:7) 18 verbose stack at maybeClose (internal/child_process.js:925:16) 18 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) 19 verbose pkgid angular-quickstart@1.0.0 20 verbose cwd D:\Rohith\Angular2\test 21 verbose Windows_NT 6.2.9200 22 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start" 23 verbose node v8.11.4 24 verbose npm v5.6.0 25 error code ELIFECYCLE 26 error errno 1 27 error angular-quickstart@1.0.0 start: concurrently "npm run tsc:w" "npm run lite" 27 error Exit status 1 28 error Failed at the angular-quickstart@1.0.0 start script. 28 error This is probably not a problem with npm. There is likely additional logging output above. 29 verbose exit [ 1, true ]

In console getting error as below mentioned please help.........

D:\Rohith\Angular2\test>npm start

angular-quickstart@1.0.0 prestart D:\Rohith\Angular2\test npm run build

angular-quickstart@1.0.0 build D:\Rohith\Angular2\test tsc -p src/

angular-quickstart@1.0.0 start D:\Rohith\Angular2\test concurrently "npm run tsc:w" "npm run lite"

Error occured when executing command: npm run liteError: spawn cmd.exe ENOENT at _errnoException (util.js:992:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19) at onErrorNT (internal/child_process.js:372:16) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) at Function.Module.runMain (module.js:695:11) at startup (bootstrap_node.js:191:16) at bootstrap_node.js:612:3Error occured when executing command: npm run lite Error: spawn cmd.exe ENOENT at _errnoException (util.js:992:11) at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19) at onErrorNT (internal/child_process.js:372:16) at _combinedTickCallback (internal/process/next_tick.js:138:11) at process._tickCallback (internal/process/next_tick.js:180:9) at Function.Module.runMain (module.js:695:11) at startup (bootstrap_node.js:191:16) at bootstrap_node.js:612:3npm run lite exited with code -4058 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! angular-quickstart@1.0.0 start: concurrently "npm run tsc:w" "npm run lite" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the angular-quickstart@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ramya\AppData\Roaming\npm-cache_logs\2018-08-23T05_0929 618Z-debug.log