首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >NodeJS和Gulp抛出错误

NodeJS和Gulp抛出错误
EN

Stack Overflow用户
提问于 2016-08-22 18:18:42
回答 2查看 285关注 0票数 1

当我尝试运行Gulp watch时遇到问题。

下面是抛出的错误:

代码语言:javascript
复制
[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

问题是在我的浏览器上只有"Cannot GET /“。帮我解决这个问题。这似乎是突然发生的。

我在Bitbucket上有一个存储库,我从中提取了initiate源文件(这个存储库是由我创建和维护的)。

欢迎任何帮助。提前谢谢。如果您需要查看gulp.config和gulpfile.js,请务必让我知道

EN

回答 2

Stack Overflow用户

发布于 2016-08-22 18:23:13

我认为这是因为npm包更新的版本号没有被撞到。

票数 0
EN

Stack Overflow用户

发布于 2016-08-22 19:04:29

看起来现在有个问题。您可以遵循下面的讨论:https://github.com/gulpjs/gulp/issues/1768

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39076961

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档