安装 运行 stylie

来源:互联网 发布:硕鼠 mac 怎么用 编辑:程序博客网 时间:2024/06/06 04:06

  下载   stylie  文件 

   安装    https://github.com/jeremyckahn/stylie  

下面的  必须的 程序 

 Requirements:

  • NodeJS/NPM,
  • Bower (version 1.0 or above)
  • Grunt
  • Sass and Compass

Clone this repo and install the dependencies: 

npm install && bower install
bower  install 时  报错 Bower : ENOGIT git is not  install  or not in the  Path 
Ubutun:  apt-get   install  git   安装git  就可以了 。  
windows  :  安装需要 配置环境 自己百度 。
grunt  时  jshint 检测 报错 custom-jquery.js  时报出好多错误 。  
发现 custom-jquery.js  是2 年前 编写的 ,  有一些写法不符合 jshint 的检查 , 这时
你就可以修改 stylie-master下的 .jshintrc 文件 里的检查配置 。 *(http://jshint.com/docs/options/   官网) 
然后 custom-jquery.js 中的文件 也需要 一些改动  ,如添加 new  。  return  等 。 
然后还是错误,jpegtran-binoptipng-bingifsicle  这三个报的缺失错误,  我用 npm  install XXX 安装了 。
之后 可以运行  grunt serve  ,不过页面可以打开 ,就是什么也没有 , 控制台 报  bad  argument  错误 。自此没有解决。
然后 谷歌了一下  ,说是 node  要使用  version 5  and  no hight  , 然后 我把  grunt  grunt-cil  npm  nodejs 等都卸载了
然后 重新安装的  node  4.5 版本的   然后安装这些 ,   在bower install 时  爆出 backbone 的 错误  ,没有解决 。
不过 运行 grunt 没有报错,  grunt  serve  依旧显示页面 但是是空白的 。
如果 有人 看到这个文章 ,并且成功了 , 请留言 告知一声,  感谢 。   

0 0
原创粉丝点击