Giter Club home page Giter Club logo

Comments (9)

satya164 avatar satya164 commented on July 25, 2024

@dmitriz Hi. What's the version of NodeJS you're running? Quik needs Node 5.0 right now.

We can support older versions by using babel though. Will try to set it up over the weekend. Would love a PR if you can :)

from quik.

dmitriz avatar dmitriz commented on July 25, 2024

I'm on 4.2.4 which is listed as mature.
Wouldn't have enough experience for a PR :(

from quik.

satya164 avatar satya164 commented on July 25, 2024

@dmitriz Okay. No problem. Quik uses some ES2015 features like array spread which are not present in Node 4. I can make it work in old versions of Node by transpiling with babel (the babel-register package). There were few issues last time I tried to do that and haven't gotten time to fix those. I'll definitely try again this weekend and get it to work with older Node versions.

from quik.

jestho avatar jestho commented on July 25, 2024

@dmitriz I would recommend checking out Node Version Manager, which makes it easy as pie to change between versions.

from quik.

dmitriz avatar dmitriz commented on July 25, 2024

Thanks, just tried with v5, however, it didn't install any packages and so the build failed.

In empty directory:

quik --init AwesomeProject
cd AwesomeProject && quik

Browser output:

./index.js
Module build failed: Error: Couldn't find preset "es2015" relative to directory "/Users/dmitrizaitsev"
    at OptionManager.mergePresets (/Users/dmitrizaitsev/npm-global/lib/node_modules/quik/node_modules/babel-core/lib/transformation/file/options/option-manager.js:327:17)
    at OptionManager.mergeOptions (/Users/dmitrizaitsev/npm-global/lib/node_modules/quik/node_modules/babel-core/lib/transformation/file/options/option-manager.js:287:12)
    at OptionManager.addConfig (/Users/dmitrizaitsev/npm-global/lib/node_modules/quik/node_modules/babel-core/lib/transformation/file/options/option-manager.js:221:10)
    at OptionManager.findConfigs (/Users/dmitrizaitsev/npm-global/lib/node_modules/quik/node_modules/babel-core/lib/transformation/file/options/option-manager.js:364:16)
    at OptionManager.init (/Users/dmitrizaitsev/npm-global/lib/node_modules/quik/node_modules/babel-core/lib/transformation/file/options/option-manager.js:412:12)
    at File.initOptions (/Users/dmitrizaitsev/npm-global/lib/node_modules/quik/node_modules/babel-core/lib/transformation/file/index.js:191:75)
    at new File (/Users/dmitrizaitsev/npm-global/lib/node_modules/quik/node_modules/babel-core/lib/transformation/file/index.js:122:22)
    at Pipeline.transform (/Users/dmitrizaitsev/npm-global/lib/node_modules/quik/node_modules/babel-core/lib/transformation/pipeline.js:42:16)
    at transpile (/Users/dmitrizaitsev/npm-global/lib/node_modules/quik/node_modules/babel-loader/index.js:14:22)
    at Object.module.exports (/Users/dmitrizaitsev/npm-global/lib/node_modules/quik/node_modules/babel-loader/index.js:88:12)

from quik.

satya164 avatar satya164 commented on July 25, 2024

There seems to be issue with the installation. Just uninstall and reinstall it once.

npm uninstall -g quik && npm install -g quik

Sorry for the trouble.

from quik.

dmitriz avatar dmitriz commented on July 25, 2024

Is this because I installed running Node 4?
NVM seems to break my prefixes for Node 5...
Any details why Node 5 and what it has that Node 4 doesn't?

from quik.

satya164 avatar satya164 commented on July 25, 2024

Node 5 uses NPM 3 by default whereas Node 4 used NPM 2. It might be because of that.

from quik.

dmitriz avatar dmitriz commented on July 25, 2024

Actually I've already switched to NPM3 a while ago.
Still not sure about Node 5, until they call it "mature".

from quik.

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.