Reputation: 25
I am a newbie to Angular2. I was trying to setup Angular 2 using this reference: https://github.com/angular/quickstart. But unfortunately, I am unable to run my basic application. I have installed npm. While running "npm start", I am getting below output in my command prompt:
`E:\Extrawork\Angular>npm start
> [email protected] prestart E:\Extrawork\Angular
> npm run build
> [email protected] build E:\Extrawork\Angular
> tsc -p src/
> [email protected] start E:\Extrawork\Angular
> concurrently "npm run build:watch" "npm run serve"
[0]
[0] > [email protected] build:watch E:\Extrawork\Angular
[0] > tsc -p src/ -w
[0]
[1]
[1] > [email protected] serve E:\Extrawork\Angular
[1] > lite-server -c=bs-config.json
[1]
[1] ** browser-sync config **
[1] { injectChanges: false,
[1] files: [ './**/*.{html,htm,css,js}' ],
[1] watchOptions: { ignored: 'node_modules' },
[1] server:
[1] { baseDir: 'src',
[1] middleware: [ [Function], [Function] ],
[1] routes: { '/node_modules': 'node_modules' } } }
[0] 4:59:12 PM - Compilation complete. Watching for file changes.
`
It stops here. I did wait for 20-30 mins but it doesn't proceed. Can anyone tell me what am I doing wrong, Please?
Upvotes: 0
Views: 799
Reputation: 25
This is freaking me out, guys!
I did setup it again to integrate with node to built a basic MEAN app and it gave me the same error again.That is insane!!!
Luckily, I was checking on youtube to setup and I found the same error with this video : https://www.youtube.com/watch?v=MWsrJ2T6GFM. But the app was still able to execute. I thought of trying and it worked for me too!!
If it happens to you then I would suggest you to try to execute once even if it gives you a warning. It may work.
Upvotes: 0
Reputation: 2894
I recommend you to use Angular Cli this will generate files for you and add new files to necessary files like
module.ts
for you as well Plus it has commands that can analyse your code and point out possible error that may occur if you ran it and suggest the changes
Upvotes: 1