Comments (9)
@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.
I'm on 4.2.4 which is listed as mature.
Wouldn't have enough experience for a PR :(
from quik.
@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.
@dmitriz I would recommend checking out Node Version Manager, which makes it easy as pie to change between versions.
from quik.
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.
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.
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.
Node 5 uses NPM 3 by default whereas Node 4 used NPM 2. It might be because of that.
from quik.
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)
- An in-range update of eslint-plugin-import is breaking the build 🚨 HOT 4
- An in-range update of css-loader is breaking the build 🚨 HOT 4
- An in-range update of file-loader is breaking the build 🚨
- An in-range update of babel-core is breaking the build 🚨 HOT 1
- An in-range update of opn is breaking the build 🚨
- An in-range update of sass-loader is breaking the build 🚨 HOT 1
- An in-range update of react is breaking the build 🚨 HOT 2
- An in-range update of react-dom is breaking the build 🚨 HOT 1
- An in-range update of eslint-plugin-ava is breaking the build 🚨 HOT 2
- An in-range update of babel-loader is breaking the build 🚨 HOT 3
- An in-range update of koa is breaking the build 🚨 HOT 1
- An in-range update of del-cli is breaking the build 🚨 HOT 1
- SyntaxError: Invalid or unexpected token
- An in-range update of less-loader is breaking the build 🚨 HOT 1
- An in-range update of eventsource is breaking the build 🚨 HOT 1
- An in-range update of eslint-plugin-babel is breaking the build 🚨 HOT 1
- An in-range update of babel-runtime is breaking the build 🚨 HOT 2
- An in-range update of babel-polyfill is breaking the build 🚨 HOT 1
- An in-range update of babel-cli is breaking the build 🚨 HOT 1
- Babel 7
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 quik.