Comments (8)
jdf-sass好像没有安装成功,建议你npm clean cache后重新安装
from jdf.
@putaoshu 执行后不 work
操作步骤
$ npm cache clean
$ sudo npm uninstall jdf -g
$ sudo npm i jdf -g
$ sudo npm i node-sass -g
运行
$ jdf build
报错信息
同上
from jdf.
看报错信息,目测是jdf-sass和系统的node版本对不上
from jdf.
恩,升级node至4.2.6+,重新安装试试
from jdf.
@putaoshu node V7.x & V6.x 版本都不行,降到4.x版本的node可以,建议升级修复吧。
from jdf.
@wshxbqq jdf-sass在node V7.x & V6.x版本是不是还不支持?
from jdf.
这块个人建议需要升级一下,如果jdf打算更通用的话,有几点考虑:
- 并不是所有人都会sass
- 并不是所有项目都需要sass
- 即使用css预处理器,也应该提供可选项吧,比如less、stylus以及其他
- 如果默认用sass,但jdf-sass依赖的node-sass这个模块在windows上安装会有编译问题,出错后对新手也是不友好的
以上,仅供参考和讨论,多谢。
from jdf.
@GuoYongfeng 明白你的意思了,就是做成可插拔的插件形式,不过这样整体的变动会比较大。jdf-sass已经不维护,下个版本我会先替换成node-sass。
from jdf.
Related Issues (20)
- jdf安装不成功 HOT 3
- npm install jdf -g失败 HOT 1
- csssprite中配置项imagesSuffix设置为添加时间戳的功能没有。 HOT 3
- 希望可以添加输出unix格式的选配项
- 最新版的 背景图合并的路径 HOT 2
- jdf 支持angular吗 HOT 1
- commonjs的问题 HOT 5
- 求QQ账号 HOT 1
- 希望可以输出rem为单位的样式~ HOT 2
- 工程打包上传后一键本地安装 HOT 1
- CSS的编译能不能自动加上autoprefixer HOT 1
- 浏览器自动刷新为什么不用browser-sync HOT 1
- 字体文件eot ttf等会被过滤 不能上传到服务器 HOT 1
- jdf可以做首页的静态化么 HOT 1
- jdf upload -nc 报错 HOT 1
- “合并所有引用的widget中的css”功能出错。 HOT 1
- mac下安装的问题 HOT 1
- window下安装出现问题 HOT 3
- 怎么做到编码统一化的? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jdf.