Zurb Foundaion CLI无法识别基本主题的Zurb Stack

时间:2019-06-17 11:05:21

标签: zurb-foundation zurb-foundation-6

我是Foundation的新手,我无法通过Foundation CLI安装模块。安装似乎没有注意到堆栈,并继续以zip格式下载该块

C:\Users\user\site>foundation blocks install sticky-topbar
You don't appear to be in a ZURB stack project, so we can't automatically install building blocks
? Do you want to download as a zip file? No

C:\Users\user\site>dir
Volume in drive C is OS
Volume Serial Number is CABF-C5A0

Directory of C:\Users\user\site

17/06/2019  12:17    <DIR>          .
17/06/2019  12:17    <DIR>          ..
17/06/2019  12:16                63 .gitignore
17/06/2019  12:16                71 CHANGELOG.md
17/06/2019  12:17    <DIR>          css
17/06/2019  12:16    <DIR>          etc
17/06/2019  12:16               974 gulpfile.js
17/06/2019  12:16             7,783 index.html
17/06/2019  12:16    <DIR>          js
17/06/2019  12:16    <DIR>          node_modules
17/06/2019  12:16           256,677 package-lock.json
17/06/2019  12:16               910 package.json
17/06/2019  12:16             1,378 README.md
17/06/2019  12:16    <DIR>          scss
17/06/2019  12:16           171,452 yarn.lock
           8 File(s)        439,308 bytes
           7 Dir(s)  320,466,063,360 bytes free

C:\Users\user\site>

如何解决该问题。

我已经安装了所有依赖项并将其升级到最新版本,包括node.js

我正在运行Windows 10专业版

1 个答案:

答案 0 :(得分:1)

foundation new出现错误

因此,我使用以下内容重新安装了项目,现在Foundation CLI版本2.2.5可以识别堆栈并安装块

foundation new --framework sites --template zurb