2016-08-22 62 views
1

我嘗試運行Gulp手錶時出現問題。NodeJS和Gulp拋出錯誤

這裏的拋出的錯誤:

[15:42:57] Using gulpfile ~/bartslaw-nyc/Gulpfile.js 
[15:42:57] Starting 'browserSync'... 
[15:42:57] Finished 'browserSync' after 17 ms 
[15:42:57] Starting 'clean'... 
[15:42:57] Finished 'clean' after 5.25 ms 
[15:42:57] Starting 'pages'... 
[15:42:57] 'pages' errored after 6.59 ms 
[15:42:57] TypeError: Cannot read property 'length' of undefined 
    at flattenGlob (/home/k7/bartslaw-nyc/node_modules/glob2base/index.js:9:25) 
    at setToBase (/home/k7/bartslaw-nyc/node_modules/glob2base/index.js:48:12) 
    at module.exports (/home/k7/bartslaw-nyc/node_modules/glob2base/index.js:56:19) 
    at Object.gs.createStream (/home/k7/bartslaw-nyc/node_modules/glob-stream/index.js:34:42) 
    at Object.gs.create (/home/k7/bartslaw-nyc/node_modules/glob-stream/index.js:68:42) 
    at Gulp.src (/home/k7/bartslaw-nyc/node_modules/vinyl-fs/lib/src/index.js:33:23) 
    at Gulp.<anonymous> (/home/k7/bartslaw-nyc/Gulpfile.js:44:15) 
    at module.exports (/home/k7/bartslaw-nyc/node_modules/orchestrator/lib/runTask.js:34:7) 
    at Gulp.Orchestrator._runTask (/home/k7/bartslaw-nyc/node_modules/orchestrator/index.js:273:3) 
    at Gulp.Orchestrator._runStep (/home/k7/bartslaw-nyc/node_modules/orchestrator/index.js:214:10) 
[BS] Access URLs: 
------------------------------------ 
     Local: http://localhost:3000 
    External: http://192.168.1.3:3000 
------------------------------------ 
      UI: http://localhost:3001 
UI External: http://192.168.1.3:3001 
------------------------------------ 
[BS] Serving files from: _build 

的問題是,在我的瀏覽器有隻是「不能GET /」。幫我解決這個問題。這似乎是突然發生的。

我有一個從我從哪裏拉動啓動源文件(此庫由我創建和維護)的Bitbucket存儲庫。

任何幫助,歡迎。提前致謝。不要讓我知道如果你需要看到gulp.config和gulpfile.js

+0

http://stackoverflow.com/help/mcve – baao

+1

有一個新的打開錯誤票在吞吐回購,你可能希望按照它https://github.com/gulpjs/gulp/issues/1768 – devmatt

回答

0

我想是因爲這裏的版本號沒有撞到

+0

有沒有辦法找到它,並讓它好嗎? – TheEarlyMan