node.js - npm start does not open browser tab -


i learning angularjs 2.i want make first application in angularjs 2 official website.so followed here https://angular.io/docs/ts/latest/quickstart.html. in step 6 have run command 'npm start' in terminal.it gives me result in terminal like--

$ npm start  > angular-quickstart@1.0.0 start d:\sadiq\res\angularjs__2\angularq > tsc && concurrently "tsc -w" "lite-server"  [1] did not detect `bs-config.json` or `bs-config.js` override file. using lite-server defaults... [1] ** browser-sync config ** [1] { injectchanges: false, [1]   files: [ './**/*.{html,htm,css,js}' ], [1]   watchoptions: { ignored: 'node_modules' }, [1]   server: { basedir: './', middleware: [ [function], [function] ] } } [1] [bs] access urls: [1]  ------------------------------------- [1]        local: http://localhost:3002 [1]     external: http://192.168.2.93:3002 [1]  ------------------------------------- [1]           ui: http://localhost:3003 [1]  ui external: http://192.168.2.93:3003 [1]  ------------------------------------- [1] [bs] serving files from: ./ [1] [bs] watching files... [1] [bs] file changed: app\app.component.js [1] [bs] file changed: app\app.module.js [1] [bs] file changed: app\main.js [0] 12:01:51 pm - compilation complete. watching file changes. 

but not open tab in crome.if enter url provided

'http://localhost:3002'

manually in address bar gives result expected,works fine , changes in source file cause change in browser. problem is: can not figure out why not open tab in browser automatically. can me?

update 07 nov 2016

important observation copied project in 2 pc. there works expected.when run 'npm start' opens tab in browser , runs application.so there creates no problem , works according official angular2 tutorial site.can have idea why happening in pc or browser?

everything looks fine, reason might if there open:false in config. can try this,

create file bs-config.js @ root & add code,

module.exports = {   port: 5000,//custom port   files: ['./**/*.{html,htm,css,js}'],   open: true }; 

Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -