Coder Social home page Coder Social logo

jdf build 失败 about jdf HOT 8 CLOSED

GuoYongfeng avatar GuoYongfeng commented on July 17, 2024
jdf build 失败

from jdf.

Comments (8)

putaoshu avatar putaoshu commented on July 17, 2024

jdf-sass好像没有安装成功,建议你npm clean cache后重新安装

from jdf.

GuoYongfeng avatar GuoYongfeng commented on July 17, 2024

@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.

loveky avatar loveky commented on July 17, 2024

看报错信息,目测是jdf-sass和系统的node版本对不上

from jdf.

putaoshu avatar putaoshu commented on July 17, 2024

恩,升级node至4.2.6+,重新安装试试

from jdf.

GuoYongfeng avatar GuoYongfeng commented on July 17, 2024

@putaoshu node V7.x & V6.x 版本都不行,降到4.x版本的node可以,建议升级修复吧。

from jdf.

putaoshu avatar putaoshu commented on July 17, 2024

@wshxbqq jdf-sass在node V7.x & V6.x版本是不是还不支持?

from jdf.

GuoYongfeng avatar GuoYongfeng commented on July 17, 2024

这块个人建议需要升级一下,如果jdf打算更通用的话,有几点考虑:

  1. 并不是所有人都会sass
  2. 并不是所有项目都需要sass
  3. 即使用css预处理器,也应该提供可选项吧,比如less、stylus以及其他
  4. 如果默认用sass,但jdf-sass依赖的node-sass这个模块在windows上安装会有编译问题,出错后对新手也是不友好的

以上,仅供参考和讨论,多谢。

from jdf.

putaoshu avatar putaoshu commented on July 17, 2024

@GuoYongfeng 明白你的意思了,就是做成可插拔的插件形式,不过这样整体的变动会比较大。jdf-sass已经不维护,下个版本我会先替换成node-sass。

from jdf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.