npm start不会打开浏览器选项卡

我正在学习angularjs 2.我想在我的第一个应用程序在angularjs 2从他们的官方网站。所以我从这里跟随所有从https://angular.io/guide/quickstart 。 现在在第6步,我必须在terminal运行一个命令'npm start',它给了我terminal上的结果 –

$ npm start > angular-quickstart@1.0.0 start D:\Sadiq\Res\Angularjs__2\angularQ > tsc && concurrently "tsc -w" "lite-server" [1] Did not detect a `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 for file changes. 

但是它不打开我的crome中的任何标签。如果我input它提供的url

' http:// localhost:3002 '

手动在地址栏中给出了预期的结果,工作正常,源文件中的任何更改都会立即引起浏览器的更改。 问题是:我不明白为什么它不是自动打开浏览器中的标签。 谁能帮我?

更新07年11月

重要的观察是,我复制我的项目在另外两台电脑。 那里它按预期工作。当我运行'npm开始'时,它打开浏览器中的标签,并运行应用程序。因此,它没有创build任何问题,并根据官方angular2教程site.can任何人有任何想法为什么这是发生在我的电脑或我的浏览器?

一切看起来都很好,只有你的configuration中有open:false的原因。 你可以试试这个,

在根目录创build一个文件bs-config.js并添加这个代码,

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