help...i cant run angular2 quickstart
See original GitHub issuei cant run angular2 quickstart, it cant run lite-server
C:\angularjs\angular2-tour-of-heroes\app>npm start
angular2-quickstart@1.0.0 start C:\angularjs\angular2-tour-of-heroes tsc && concurrently “npm run tsc:w” “npm run lite”
app/app.component.ts(77,13): error TS2304: Cannot find name ‘HEROES’. app/app.component.ts(80,3): error TS2393: Duplicate function implementation. app/app.component.ts(84,34): error TS2339: Property ‘then’ does not exist on type ‘void’. app/app.component.ts(89,3): error TS2393: Duplicate function implementation.
npm ERR! Windows_NT 10.0.10586
npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “start”
npm ERR! node v6.2.1
npm ERR! npm v3.9.3
npm ERR! code ELIFECYCLE
npm ERR! angular2-quickstart@1.0.0 start: tsc && concurrently "npm run tsc:w" "npm run lite"
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the angular2-quickstart@1.0.0 start script 'tsc && concurrently “npm run tsc:w” “npm run lite” '.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-quickstart package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! tsc && concurrently “npm run tsc:w” “npm run lite”
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular2-quickstart
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls angular2-quickstart
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request: npm ERR! C:\angularjs\angular2-tour-of-heroes\app\npm-debug.log
Issue Analytics
- State:
- Created 7 years ago
- Comments:23
Top GitHub Comments
try changing “start”: "tsc && concurrently "npm run tsc:w" "npm run lite" " to: “start”: "concurrently "npm run tsc:w" "npm run lite" " in your package.json file. Worked for me
This is nodejs problem - not lite-server. Try to reinstall all packages by deleting node_modules folder and then run command ‘npm install’