Questions tagged [iojs]

iojs is an npm compatible platform originally based on Node.js

iojs or io.js is a JavaScript platform built on Chrome's V8 runtime. This project began as a fork of Joyent's Node.js™ and is compatible with the npm ecosystem.

iojs aims to provide faster and predictable release cycles. It currently merges in the latest language, API and performance improvements to V8 while also updating libuv and other base libraries.

24 questions
24
votes
5 answers

Nodejs: Good practice to just use the index.js to EXPORTS?

I am seeing a pattern on some code I have inherited. Each directory has its JS file but there is also a index.js that actually exports items from the other JS file or files. I presume this is done so you can see exactly what you are exporting, as…
Martin
  • 23,844
  • 55
  • 201
  • 327
18
votes
3 answers

What should be a project structure for React + Node.js?

A bit wide question, but with all those trends in JS world, sometimes it is hard to find information about such simple things. What is the better way to organize files and folders in such kind of project? There is server examples in few language…
wolendranh
  • 4,202
  • 1
  • 28
  • 37
11
votes
4 answers

Difference between Events and Functions?

I am new to Node, and I am struggling to understand the main difference between Events and Functions. Both need to be triggered, so why do we need an Event at all if we have to trigger it anyway? How is it different than having a Function…
Ariel Weinberger
  • 2,195
  • 4
  • 23
  • 49
6
votes
4 answers

Self signed SSL does not work after upgrading from iojs to nodejs v4.4.4

I was using iojs and koa in my application and recently I decided to update iojs to nodejs v4.4.4. The update was very smooth and my application was running in no time. The problem is that I am using a self signed SSL certificate on my development…
Ivan Stoyanov
  • 5,412
  • 12
  • 55
  • 71
3
votes
1 answer

nginx & nodejs: connect() failed (111: Connection refused) while connecting to upstream

Before I get into it, I have looked through every similar issue I could find and nothing I found solved my problem. I am running 2 docker containers, 1 for nginx and 1 for a nodejs api. I am using nginx as a reverse proxy. When I request…
abramz
  • 53
  • 1
  • 1
  • 6
2
votes
1 answer

How can I uninstall io.js correctly on Mac OS X El Capitan?

I cannot find any instructions for correctly uninstalling io.js from Mac OS X. The only guide i can find online is here, but the directory it mentions for io.js doesn't seem to exist on my computer, or I don't know where to look:…
Kyle Duncan
  • 283
  • 4
  • 12
1
vote
1 answer

Export directory as zip with a SaveFileDialog

I'm using archiver to export a directory as a zip file in nodejs/node-webkit. var file_system = require("fs") var archiver = require("archiver") var output = file_system.createWriteStream("files.zip") var archive =…
Michael Schwartz
  • 8,153
  • 14
  • 81
  • 144
1
vote
1 answer

How can my node.js code see if it's running under official nodejs, iojs, jxcore, or node-chakracore?

There are now several forks of nodejs for various reasons. For my node code to see which fork it is running under, what is currently the best way? The forks I am aware of are: The official nodejs release iojs - I guess it's now deprecated since…
hippietrail
  • 15,848
  • 18
  • 99
  • 158
1
vote
1 answer

Generator function does not yield proper value

I have recently learned a bit of ES6 and started my new project using koa.js running on io.js. In the code below, I am trying to check if there is already another item with the same url slug. But the value of counter.next().value always returns a…
Moon
  • 33,439
  • 20
  • 81
  • 132
1
vote
2 answers

Node 4.x in the IBM Node buildpack?

Node.js 4.0, 4.1 is out, but my application is still staging with Node 0.12.x. When will either versions of io.js or Node.js be availaible?
mark
  • 1,953
  • 1
  • 24
  • 47
1
vote
1 answer

How to run Iojs in Docker?

I have the following Dockerfile: FROM ubuntu:14.10 ENV HOMEDIR /usr/share/iojs RUN apt-get update && \ apt-get install software-properties-common python-software-properties -qq -y && \ apt-get upgrade -y && \ apt-get install -qq -y…
Bob van Luijt
  • 7,153
  • 12
  • 58
  • 101
1
vote
1 answer

How to control output bit depth in graphicsmagick (for Node)?

So I have two PNG images, both non-transparent 24bpp. One image contains a rainbow, other one contains a single line of text: I do the same thing with both of them: var gm = require('gm').subClass({imageMagick:…
amdc
  • 400
  • 1
  • 4
  • 17
1
vote
0 answers

How to administrate a sinopia server (private npm registry)?

I installed the great sinopia private npm registry. Its very simple and works like a charm! I love it ! But I can't get what are the administration features.. is there admin features ? can a system admin create a sinopia admin account or the admin…
Rémi Becheras
  • 14,902
  • 14
  • 51
  • 81
0
votes
1 answer

Electron - Error launching app

I am following a tutorial on how to use Electron to make desktop apps. I have followed all of the steps but when I use npm start in terminal I get this error Image of error Click here to see the tutorial that I am following
user5864652
0
votes
0 answers

is io.js hijacking npm's global?

Having installed io.js aside node.js, I notice the following oddity trying to upgrade node-gyp. When trying out npm install -g node-gyp I get the following at the top of the output: /usr/local/lib/iojs-v3.3.1-linux-x64/bin/node-gyp ->…
matanster
  • 15,072
  • 19
  • 88
  • 167
1
2