无法启动浏览器同步
Fail to start browser sync
我是新手。我刚开始通过Coursera的免费课程学习web开发,但我在设置开发环境时遇到了麻烦。
我就是这么做的:安装了 Sublime Text 3,git 和 node.js。在 git 上创建了一个存储库,一个带有 Sublime 的网页并将其提交给 git。
现在我正在尝试启动浏览器同步,但我得到了这个:
$ browser-sync start --server --directory --files "*"
[BS] Access URLs:
-------------------------------------
Local: http: //localhost:3000
External: http: //192.168.0.13:3000
-------------------------------------
UI: http: //localhost:3001
UI External: http: //192.168.0.13:3001
-------------------------------------
[BS] Serving files from: ./
[BS] Watching files...
events.js:141
throw er; // Unhandled 'error' event
^
Error: spawn cmd ENOENT
at exports._errnoException (util.js:870:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
我搜索了很多但找不到解决方案。
浏览器未同步。
课程的一位导师帮助我解决了问题。
此错误的原因是系统变量中缺少 C:\Windows\System32\
变量。我添加了它,它解决了我的问题。
我是新手。我刚开始通过Coursera的免费课程学习web开发,但我在设置开发环境时遇到了麻烦。
我就是这么做的:安装了 Sublime Text 3,git 和 node.js。在 git 上创建了一个存储库,一个带有 Sublime 的网页并将其提交给 git。
现在我正在尝试启动浏览器同步,但我得到了这个:
$ browser-sync start --server --directory --files "*"
[BS] Access URLs:
-------------------------------------
Local: http: //localhost:3000
External: http: //192.168.0.13:3000
-------------------------------------
UI: http: //localhost:3001
UI External: http: //192.168.0.13:3001
-------------------------------------
[BS] Serving files from: ./
[BS] Watching files...
events.js:141
throw er; // Unhandled 'error' event
^
Error: spawn cmd ENOENT
at exports._errnoException (util.js:870:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at nextTickCallbackWith2Args (node.js:442:9)
at process._tickCallback (node.js:356:17)
我搜索了很多但找不到解决方案。
浏览器未同步。
课程的一位导师帮助我解决了问题。
此错误的原因是系统变量中缺少 C:\Windows\System32\
变量。我添加了它,它解决了我的问题。