无法解析`foundation blocks list` foundation-cli命令的JSON响应

时间:2017-07-06 17:03:52

标签: json zurb-foundation

我通过yarn安装了scoop。并使用foundation-cliyarn安装为全局。

执行foundation blocks list时,错误显示:

error fetching file /building-blocks/data/building-blocks.json
undefined:1

SyntaxError: Unexpected end of JSON input
    at Object.parse (native)
at C:\Users\rairo\AppData\Local\Yarn\config\global\node_modules\foundation-cli\lib\commands\blocks.js:28:23
at IncomingMessage.<anonymous> (C:\Users\rairo\AppData\Local\Yarn\config\global\node_modules\foundation-cli\lib\util\fetch-url.js:24:9)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)

进一步检查后,似乎用验证码阻止了响应。我在Chrome中打开了隐身模式并访问https://foundation.zurb.com/building-blocks/data/building-blocks.json,但它确实显示了验证码屏幕。这是预期的吗?任何解决方法?谢谢!

版本:
基础CLI版本2.2.3
纱线v0.27.5
npm 3.10.10
节点6.11.0通过nvm

0 个答案:

没有答案