Giter VIP home page Giter VIP logo

Comments (7)

serenader2014 avatar serenader2014 commented on June 12, 2024

Hi Geoffrey.

You need to install Gulp first before running gulp js. In most case you can run npm install -g gulp to install it(it will require root permission if you use Linux/Mac system).

And from your error logs, I guess you haven't install node-sass successfully. Try running npm install node-sass again.

BTW, I will include more languages in the next release. Which language do you need?

from decent.

 avatar commented on June 12, 2024

Shouldn't npm install take care of installing gulp and node-sass?
I tried running npm install node-sass again but still the same error. What should create the vendor directory in node-sass?
Could it be that these errors are due to an older linux distro? I'm running Ubuntu 14.04 with npm v2.15.1, I'll try to install it on 16.04
Edit: seems that the npm package in the repository is outdated, however updating it and rerunning the steps still failed for me

from decent.

serenader2014 avatar serenader2014 commented on June 12, 2024

The vendor folder is used to place the binary file that will be used by node-sass .

Node-sass will try to download the binary from Github in the postinstall stage. So maybe the download isn't success, and perhaps this is the reason you get these errors.

from decent.

serenader2014 avatar serenader2014 commented on June 12, 2024

I think it's not your linux version's problem. The vendor folder is used to place the Node-sass's binary file. If the binary file is missing, it will try to build from source file as fallback. If the build failed, your Node-sass won't work.

The problem is, Node-sass will try to download the binary from Github(see https://github.com/sass/node-sass/blob/master/package.json#L31), and maybe your download isn't success, and build from source file failed, so the problem occur.

You can try to reinstall the Node-sass package behind a proxy.

from decent.

serenader2014 avatar serenader2014 commented on June 12, 2024

Just want to let you know that I've updated the theme to v1.1.2, and it comes with a lot languages syntax highlighting support. Just checkout the README to see what language has included.

from decent.

 avatar commented on June 12, 2024

Very nice thank you, what does this mean in terms of performance? Is it noticeable?

from decent.

serenader2014 avatar serenader2014 commented on June 12, 2024

The size of the bundle file is increases about 50kb after gzip, so I think it's acceptable.

from decent.

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.