如何安装foundation kits,绕过报错"You don't appear to be in a ZURB stack project, so we can't automatically instal l building blocks"

How to install foundation kits, bypass the error "You don't appear to be in a ZURB stack project, so we can't automatically instal l building blocks"

我安装了最后一个基础客户端,喜欢在我的项目中安装一个工具包。我使用 Linux Fedora 25、Windows 7、8 和 10。我总是遇到同样的错误。

如何使用命令行安装基础工具包或块?

我做到了:

Foundation new
<and give the new projectname name>

cd <projectname>
npm start
foundation kits install dashboard
You don't appear to be in a ZURB stack project, so we can't automatically instal
l building blocks
? Do you want to download as a zip file? No

foundation blocks install app-dashboard-layout

给出相同的输出。

为什么基金会不检测堆栈项目?我安装了 ruby、gem、node、npm、glup、bower、mongo。

程序版本: 基础 CLI 2.2.2 凉亭 1.8.0 节点 6.10.3 npm 3.10.0 摩卡 3.4.1

我知道我可以解压缩文件,但我不明白为什么基金会不检测他自己新创建的项目。

foundation new 

出现提示,第三个选项需要是ZURB

> Foundation for sites
> <project name>
> ZURB template 

然后

cd <project> 
foundation kits install <kit> 

我相信你 select ZURB 模板。我刚刚尝试了以下命令,它似乎对我有用。