[英]Unable to run (gulp serve) Google Polymer Starter Kit v1.1.0 on Windows
我需要幫助!
我已經能夠輕松安裝和運行所有以前版本的PSK。 我已經花了幾個小時嘗試使1.1.0在我的環境中運行。 我做了我能想到的一切。 從搜索錯誤到在此處查看此版本的所有當前問題。 建議的修復程序對我不起作用。
我沒有進行任何代碼更改,並且以Admin身份運行CMD。
當我獲取存儲庫的新副本並進行NPM和Bower安裝時,然后運行“ gulp serve”,無論如何我都會收到以下錯誤消息:
C:\FrontEnd\polymer-starter-kit>gulp serve
[09:45:33] Using gulpfile C:\FrontEnd\polymer-starter-kit\gulpfile.js
[09:45:33] Starting 'styles'...
[09:45:33] Starting 'elements'...
[09:45:33] Starting 'images'...
[09:45:33] Finished 'elements' after 249 ms
[09:45:33] styles all files 98 B
[09:45:33] Finished 'styles' after 590 ms
[09:45:34] images all files 35.41 kB
[09:45:34] Finished 'images' after 357 ms
[09:45:34] Starting 'serve'...
[09:45:34] Finished 'serve' after 73 ms
[PSK] Access URLs:
------------------------------------
Local: http://localhost:5000
External: http://xxx.xxx.x.x:5000
------------------------------------
UI: http://localhost:3001
UI External: http://xxx.xxx.x.x:3001
------------------------------------
[PSK] Serving files from: .tmp
[PSK] Serving files from: app
events.js:141
throw er; // Unhandled 'error' event
^
Error: spawn cmd ENOENT
at exports._errnoException (util.js:837:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
at onErrorNT (internal/child_process.js:344:16)
at doNTCallback2 (node.js:429:9)
at process._tickCallback (node.js:343:17)
我的環境:
我也不確定如何獲取更詳細的堆棧跟蹤。
我該怎么辦?
謝謝您的幫助!
事實證明,我需要將C:\\ Windows \\ System32添加到PATH變量中。 這么奇怪。 當我這樣做的時候,一切都像魅力一樣運轉。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.