Node.js is an event based, asynchronous I/O framework that uses Google's V8 JavaScript engine.

learn more… | top users | synonyms

0
votes
1answer
22 views

How to read bash config when working with SSH remote sessions [duplicate]

I have a Node.js app which I want to deploy on my VM machine. Before starting the app, I want to set few commands which should be read before the app is started. I placed those commands inside ...
3
votes
2answers
45 views

How does one determine when a process or machine is IO bound?

I have a node.js process which writes to many different sqlite databases. Sqlite can handle only one concurrent write per database, which is fine since there will be only one write per database at a ...
0
votes
1answer
20 views

Installing Node.js on a remote LAMP server with no internet connection

As a part of a student project, I am to host my Node.js-based server application on a server so that other people can try connecting to it and test the integrity of it's functions. The problem is that ...
1
vote
1answer
64 views

Bash script problem in RPM postinstall

I created an rpm package that extract a Node.js project into a specific folder and then I created a postinstall script that cd into that folder and perform an "npm install --production" #!/bin/bash ...
0
votes
1answer
32 views

Where to “install” node application and best way to launch

I'm pretty new to the Linux world, I have a Node application that I would like to distribute through an apt repository, this is what I do for now: Put the node binary inside the Node application ...
0
votes
1answer
54 views

nvm command not available in bash script

I am trying to build a script in in which nvm and eventually node will get installed. I have installed nvm with cURL. I see the modifications in the .profile or .bashrc file (both work) and when ...
0
votes
0answers
27 views

What is a good way to globally install packages with npm on a RHEL-based distro?

I am running into an issue where node.js RPM packages from Fedora's repository and packages installed with 'npm install -g ...' are both being installed in /usr/lib/node_modules (npm itself being ...
1
vote
2answers
41 views

Combine svlogd logs from different runit services

I want to run a Node.js app with multiple Node processes running the exact same code. I'm using runit to start and manage the Node processes, because it has good Chef support. To illustrate the set ...
0
votes
0answers
33 views

stop node server in tmux

I have a vagrant in which one I launch a node server on start. The node server is start in a tmux session but when I attach my tmux session and I do a ctrl + c the server is killed but the tmux ...
0
votes
0answers
19 views

npm on ARM return TypeError: Bad argument

Env Cross-compiled node.js for ARM read more... Installed on target FriendlyARM mini210s running bare Linux 3.0.8 armv7l On target node.js seems to function properly. I tried a simple hello word ...
0
votes
1answer
153 views

Please set env variable CHROME_BIN

> node node_modules/karma/bin/karma start test/karma.conf.js INFO [karma]: Karma v0.12.30 server started at http://localhost:9876/ INFO [launcher]: Starting browser Chrome ERROR [launcher]: Cannot ...
1
vote
2answers
503 views

How do I cross-compile node.js for ARM architecture? GCC does not report the FP ABI compiled for

Environment TARGET Single board computer: FriendlyARM mini210s TARGET Linux : 3.0.8 armv7l Cross compiling on vagrant box Ubuntu Precise64 Cross-compiling with GCC 4.5.1 ...
0
votes
1answer
27 views

NodeJS / Etherpad: freshly installed etherpad causes TypeError

I have a Debian 7 stable server and installed etherpad-lite with this tutorial how to install etherpad-lite on debian stable. Everything went fine and etherpad starts without errors using: service ...
0
votes
0answers
139 views

How do I install tools, packages on Linux 3.0.8 armv7l?

Environment FriendlyArm Mini210s Linux 3.0.8 armv7l On the board: # uname -a Linux 3.0.8-FriendlyARM #76 PREEMPT Thu Aug 21 16:53:31 CEST 2014 armv7l unknown I need to install development ...
1
vote
1answer
154 views

What is the cause of this error: Error: EACCES, permission denied

I have two three users: db, nr, ba All three are members of the group dbp Node.js is installed in /usr/bin If I run the command : /usr/bin/node /home/db/dbb/m/i.js Then it works fine when I run ...
1
vote
1answer
67 views

Tracing the node process executing my script from “npm start”

I am attempting to debug a cli node project. Its easier to do npm start than npm install -g . && libgrabber. However, I'd like to run strace on the process. The output of strace -f on the npm ...
-1
votes
1answer
151 views

Set environment variable and run node.js server

In Ubuntu I have this: $ DEBUG=* node server.js But in FreeBSD I try this and got the following error: # setenv DEBUG * node server.js setenv: Too many arguments. How can I do this?
2
votes
2answers
151 views

cpulimit does not detect Node.JS process

I was able to limit python process to use only 50% CPU with the following cpulimit -l 50 -e python but when I tried to do the same for Node, and it is not able to detect the process at all. Does ...
2
votes
1answer
87 views

Compile Node.js for Raspberry fast

I wan't to know if there is a faster way to compile the node.js code for raspberry then letting the raspberry itself compile the code. Assuming I have cloned the nodejs source into /home/pi/node/ ...
0
votes
0answers
242 views

How to install IBM DB2 Database Driver on Ubuntu for Node.js

I need assistance installing IBM DB2 drivers onto Ubuntu. Using Ubuntu 14.04, I'm attempting to create a simple web page that gets served by the node.js server-side framework. A ...
2
votes
1answer
757 views

How to install Node.js in CentOS 5.10 with Python 2.4?

I want to use Grunt on websites we have hosted on our WHM dedicated server. It is running CENTOS 5.10 x86_64 standard with WHM 11.42.1 (build 21). It is critical that things do not break, as we have ...
0
votes
0answers
2k views

NVM cannot find installed Node binary, PATH problem on Linux Mint 17?

I've successfully installed NVM and Node using official instructions. My .bashrc file contains [ -s "/home/user/.nvm/nvm.sh" ] && . "/home/user/.nvm/nvm.sh" After some time, maybe a day, I ...
1
vote
1answer
291 views

nodejs sub processes in nohup bash script lock up

I run scripts with nohup that contain a list of a few hundred to a few thousand nodejs commands. These nodejs sub processes sync data from mysql and salesforce to couchdb. $ nohup ...
0
votes
1answer
752 views

NodeJS for Slackware

I want to run NodeJS on Slackware based distro named PuppyLinux. Since I am used to Ubuntu and CentOS (the simple Linux land), I found it pretty hard to find a NodeJS package to run on Slackware. I ...
0
votes
2answers
360 views

Where node.js was installed?

I have installed node.js by : $ yaourt -S nodejs But where node.js (Dir) was installed?
3
votes
1answer
2k views

Why is permission denied for npm start using node-dev?

I am trying to start a node.js application with on a low permissions user. All the files I know of are owned by the correct user and have permissions set reasonably well. I'm trying to use a script ...
1
vote
1answer
781 views

Fail to install node.js on Debian

I'm running Raspbmc which is running a minimal Linux distribution based on Debian. And I would like to install node.js via package manager but I'm fail to install on my system. Which it come with this ...
1
vote
0answers
394 views

Using node.js and shelljs as interactive shell

Following the answer given at unix.stackexchange.com/questions/58011/is-there-a-javascript-shell That requires me to always execute var shell=require("/usr/local/lib/node_modules/shelljs"); It ...
-3
votes
1answer
260 views

Best Linux for a small Web server [closed]

I'm currently planning my business servers and I would like to know what's the best Linux distro for these needs: Nginx + MySQL + PHP 5.4 Zimbra Collaboration - Open Source Node.js w/ Forever I ...
3
votes
3answers
2k views

Node installation: No module named gyp.common

I was trying to install node.js on CentOS 6.4 VirtualBox guest on a Windows XP host with the following commands: cd /usr/local/src/ git clone git://github.com/joyent/node.git cd node ./configure make ...
2
votes
1answer
95 views

Running services without sudo

I want to run a nodeJS web server on a couple of machines which I don't have sudo access on. What would be a good way to do this? The two requirements are: running the service without being ...
2
votes
0answers
226 views

npm issues with uglify-js

I'm trying to use node.js to run a project on my Raspberry Pi (following this guide: http://blog.donaldderek.com/2013/06/build-your-own-google-tv-using-raspberrypi-nodejs-and-socket-io/ ) and I've run ...
2
votes
2answers
1k views

How to install multiple glibc on fedora

I have Fedora 4 installed on my computer and it has glibc version 2.5.3, but I want to install a software that needs a glibc 2.7+. On the other hand, I have some programs that need this 2.5.3 version. ...
3
votes
1answer
716 views

Difference between long running process and daemon?

I'm trying to use Forever to keep my nodejs scripts up and running As per Forever's homepage it says [Long Running Process] The forever process will continue to run outputting log messages to ...
6
votes
1answer
210 views

Setting permissions for specific programs to run as guest

How do I set permissions for an HTTP server (nodejs) to run programs in /usr/local/share/npm/ safely? My use case is to setup my OSX box to run cloud9 and use titanium to build iOS apps for ...
1
vote
1answer
656 views

Understand file descriptors and nodejs

I'm having a bit of a confused time understanding what a file descriptor is and if I even need one! I am trying to spawn a process in nodejs and have its out put be written directly to an out put ...
24
votes
4answers
4k views

Universal Node.js shebang?

Node.js is very popular these days and I've been writing some scripts on it. Unfortunately, compatibility is a problem. Officially, the Node.js interpreter is supposed to be called node, but Debian ...
2
votes
2answers
271 views

How to send text to a command and THEN read from terminal

I'd like to know if it's possible to send some to a command's stdin and then keep reading from the terminal. The problem i'm trying to solve is executing some initialization code every time i open a ...
2
votes
1answer
1k views

Closing socket connection on running console application

I am testing a chat bot and want to gracefully handle for times when the chat server isn't running so it can come back up when the service is available again. I have the programming handled. My ...
3
votes
4answers
198 views

Allowing people temporary access to my server to run a command

I am going to be in the middle of nowhere for 10 days later this summer. I have a service that needs to stay running and if there is a problem when I am gone, I want to give one or two trusted people ...
2
votes
2answers
126 views

Is there an easy way to stop and reissue a command?

I am doing Node.js development in Ubuntu and I'm curious if there is a way to quickly stop and restart a node server. I run this command to start my app: $ node app.js When I make changes to ...
4
votes
2answers
2k views

Recommended location of node.js applications in linux filesystem?

Where is the conventionally accepted location of node.js/express web apps, in a linux file system? Currently I've got a subdirectory in /opt/ but I'd like to hear other people's view on this...
6
votes
5answers
10k views

What's the currently recommended way to install node.js on Debian?

I've found a few different methods on the web, but some of the articles are quite old, and I'm concerned that the methods they describe have been superceded. Can anyone tell me what the currently ...