【问题标题】:browser-sync can't run a serverbrowser-sync 无法运行服务器
【发布时间】:2015-01-15 15:00:11
【问题描述】:

我使用这个命令由 browsersync/node 服务器运行:

browser-sync start --server --files "**/*.html, **/*.js, **/*.css" --port 8005

我得到的结果是(我在网上的任何地方都找不到):

[BS] Local URL: http://localhost:false
[BS] External URL: http://10.26.104.175:false
[BS] Serving files from: ./
[BS] Watching files...

我不知道应该从哪里开始诊断这个问题。有人有什么建议吗?

浏览器同步 1.9.0 节点版本 v0.10.35 OS X 优胜美地 10.10.1

【问题讨论】:

    标签: node.js macos browser-sync


    【解决方案1】:

    浏览器同步内部依赖portscanner-plus / portscanner中的依赖关系损坏 将使用 ~0.2.2 版本(目前 0.2.3 不兼容)

    卸载 0.2.3 并重新安装 portscanner@0.2.2 特定版本修复了该问题。从 browser-sync/node_modules/portscanner-plus/ 目录运行命令:

    npm uninstall portscanner
    npm install portscanner@0.2.2
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-26
      • 2017-03-22
      • 2017-01-20
      • 1970-01-01
      相关资源
      最近更新 更多