我是开发使用SASS的新手,但我真的想使用Foundation。我安装了Node JS,Ruby,Compass,SASS,Bower等。
1)我打开命令并运行 C:\ Builds> compass create project
结果:Congrats! Your compass project has been created
2)然后我运行 C:\ Builds \ Project> gem install zurb-foundation-5
结果:Successfully installed zurb-foundation-5-5.2.2
3)我运行 C:\ Builds \ Project> foundation new sitename
结果:foundation is not recognized as an internal or external command
我以为我现在有 C:\ Builds \ Project \ Sitename
现在我想到了,实际上我希望在原始项目文件夹中安装基础,并且sass已经在该目录中运行。
现在我的文件结构如下:
project/
├── .sass-cache
│ └── ...
├── sass
│ └── ...
├── stylesheets
│ └── ...
├── config.rb
答案 0 :(得分:1)
我用Windows 8测试了它,我得到了同样的错误。基金会由于某种原因没有正确注册,但你可以在我的案例基础中ruby <pathToGems>\foundation-1.0.4\bin\foundation new <name>
Ruby200-x64\lib\ruby\gems\2.0.0\gems\foundation-1.0.4\bin\
明确地称它为{{1}}