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

learn more… | top users | synonyms

0
votes
0answers
25 views

Where should the node_modules folder go? (Mint)

I'm just about to install Karma, Jasmine and NodeJS to start testing for AngularJS. I'm having a tough time figuring out where to put the node_modules folder. My question is split into two parts, does ...
0
votes
1answer
37 views

What is the most efficient way to check if Node is currently installed?

I am writing a script that will first check if Node is currently installed, if not it will install the latest version of Node. If it is installed, then it will proceed to another function to update it....
0
votes
1answer
186 views

CentOS Multilib problem with libgcc

My friend's computer running CentOS 5.6, trying to install hhvm, but it got an error: $ yum install hhvm Failed to set locale, defaulting to C Loaded plugins: fastestmirror Setting up Install Process ...
1
vote
1answer
46 views

create user with only permissions to execute C Programs

I am trying to build online code editor. My scenario : Through the web server a request is received for a 'C' program -the root user creates the file, compiles the file and acks success to the user. ...
0
votes
0answers
16 views

chown vs chmod shared directories (NPM)

If several people are on a Linux box and one user issues chown commands on some shared folders (this has to with Node.js/NPM global files), aren't they competing with each for permissions? Is it ...
0
votes
0answers
21 views

controlling wpa_supplicant using node.js

I would like to control wpa_supplicant using a node.js module. Most importantly I want to be able to detect connection failures so I can write a program that can act upon them. So far setting up a ...
0
votes
1answer
9 views

NPMJS Forever and Logfiles

Does Forever always have its own log file? I have the following process running: data: uid command script forever pid id logfile uptime ...
-1
votes
1answer
45 views

NodeJS - error npm undefined symbol uv_fs_realpath

i'm trying to install yo (linux) using npm npm install -g yo but i get this error : node: symbol lookup error: node: undefined symbol: uv_fs_realpath when i only type npm, it return same error ...
1
vote
1answer
32 views

Pass Environment Variable to Sudo AWS ec2 sudo node

I am new to linux and AWS. I have a node.js server running on an EC2 instance. I am running the following command to keep it running endlessly and on port 80: $ sudo node app.js & Now when I ...
1
vote
1answer
37 views

How can I make node.js automatically load config files?

In my mac os x computer, node.js, you can use 'require()' to load your configuration files, but I am tired of having to do that on all my programs. Is there a way to make node.js automatically load ...
1
vote
0answers
89 views

How to Install latest version of Node js for Elementary OS (ubuntu)

I have downloaded node v5 for Linux on the *node website and found some instructions on how to Install a tar.gz file but this file ends with tar.xz and I can't find any instructions for that. Please ...
2
votes
1answer
119 views

Using an older version of Node and NPM on FreeBSD

I need to install an older version of NODE and NPM on freebsd to work with GHOST, a pretty cool blogging platform. I want to do this on my own system, preferably on a FreeBSD VM. The system is setup,...
0
votes
0answers
41 views

Installing npm on Mint 17 without using curl or the GUI file-manager

I'm trying to install npm in a Mint VM running on Windows 10 on which I can only use sudo to install and modify directories and have no ability to create directories via the visual file manager. I ...
1
vote
0answers
47 views

npm install couchbase on linux machine failing

I am trying to move node js application from windows machine to linux machine for QA environment and I am having trouble installing couchbase module on linux machine. It ran fine on windows machine ...
2
votes
2answers
534 views

Why is yum trying to install the wrong version of node.js?

On a CentOS 7 server, I am trying to install version 5.x of Node.js, but for some reason, yum keeps trying to install version 0.x and returning an error when it cannot find version 0.x at the 5.x ...
1
vote
1answer
144 views

How does one remove a tar-installed Node.js from CentOS 7?

A CentOS 7 server has v0.12.7 of Node.js installed, and the installation was done using a tar. This is leading to conflicts when I try to install a more modern version of Node.js using yum. What ...
0
votes
1answer
519 views

Why won't the correct new version of Node.js install on CentOS 7?

Note: This is partially solved, but needs a little more attention. See notes at bottom of OP, and @Digisec's partial answer. I am trying to set up Node.js on CentOS 7, but the following commands ...
2
votes
1answer
195 views

Node JS - get FQDN [closed]

How can I get the FQDN (Fully Qualified Domain Name) of the machine on which node is running? os.gethostname() is not sufficient, since it usually returns the unqualified DN, only. Same thing for dns....
0
votes
2answers
217 views

Ruby gems not recognized in bash script

I have built a node.js app that listens for webhooks. Currently it is used to build a jekyll website. I have configured it on my server and jekyll build works perfectly when I run it in the root of ...
1
vote
0answers
194 views

SASS (gulp) failing

My gulp is failing. It's a clean install. Installed as non-superuser and using as non-superuser. I am in /X/ when running gulp. It works straight from install on other machines. I have done a ls -l $(...
0
votes
1answer
2k views

libssl.so.0.9.8: cannot open shared object file: No such file or directory

When attempting to run Cloud9 IDE locally after its installation I receive this error: # bin/cloud9.sh Linux 64 bit support/node-builds-v4/node-linux64: error while loading shared libraries: libssl....
1
vote
1answer
103 views

SSH login keeps kicking me out

I am on Centos 6.6 and recently updated my server using yum, it updated a bunch of things and everything seemed fine, but I was also trying to update Ruby RVM and Node.js and NPM (Node Package Manager)...
1
vote
1answer
45 views

Using bash to make sure one program has had time to start before starting another

I have an issue with the following bash script: #Install and start application ./gradlew assemble java -jar bignibou-server/build/libs/bignibou-server.jar& #Run end2end tests node_modules/.bin/...
0
votes
1answer
80 views

Is it possible to run programs nodejs in bash?

My question is simple : I have a program written in nodejs and want to run it in an infinite loop in the language bash, is this possible?
1
vote
1answer
136 views

kali 2.0 it seems as though node was renamed nodejs

Im not sure why but the output from the commands are as follows. I have been trying to download npm but cant seem to. Was wondering if node was renamed at install due to naming conflict(wouldn't think ...
0
votes
0answers
27 views

Installing Node V4 on Linux Mint 17

I have downloaded and unpacked https://nodejs.org/dist/v4.2.1/node-v4.2.1-linux-arm64.tar.gz but don't know what to do after that. I saw some articles that talked about running the configure and then ...
0
votes
1answer
66 views

Installed package but get older version

I've updated NodeJS but the version still displays as the older. What am I doing wrong? I can see it has downloaded the latest (4.1.2). Thanks in advance!
2
votes
1answer
155 views

Node.js server with daemontools is constantly restarted

I want to run a Node.js server with daemontools on Debian (Jessie) but my script running under supervise is constantly restarted. This is the run script that I'm using (/etc/service/node/run): #!/bin/...
1
vote
2answers
423 views

Having issues with compiling node.js from source using ./configure [closed]

I referred to this already answered question, but it wasnt of any help. Can you tell me what I'm missing? I'm trying to install node.js on my Debian 8.0. According to this github article, I followed. ...
0
votes
0answers
17 views

SSL request fails during bootup because of wrong date

I have a boot-up script that runs a node application. When I make a request to a server, I get the following error: { [Error: certificate is not yet valid] code: 'CERT_NOT_YET_VALID' } I'm assuming ...
1
vote
1answer
179 views

Figure out the PID of exact node.js application

Here is an output of my ps aux: ps aux | grep "node" root 2501 0.0 3.4 720400 68512 ? Sl 16:09 0:03 node /etc/skbx/host/skbx.js 8081 tula13 8082 8084 8085 10.8.0.6 root 20586 0....
0
votes
0answers
214 views

What is the easiest way to trigger a shell script on my local machine and get its output

Say I have a script.sh as: echo $1 echo $2 echo $3 And I have a web page served by node.js at localhost:3000/page I would like to create the page like this (jsfiddle): script.sh <input type="...
0
votes
1answer
257 views

PM2 inside bash script deployed by puppet not working

#!/bin/bash # install needed RPMS yum -y install gcc-c++ git # downlaod and compile node wget https://nodejs.org/dist/v0.12.7/node-v0.12.7.tar.gz tar -xvzf node-v0.12.7.tar.gz cd node-v0.12.7 ./...
0
votes
1answer
135 views

Setting up MEAN webserver in Ubuntu 14.04 vm

I'm new to the world of web servers. My lab gave me a url with a Ubuntu 14.04 virtual machine. I sorted out enough of what I needed to do to SSH in, install all relevant libraries, and clone my code ...
0
votes
1answer
890 views

How to install bower on CentOS 7?

I am trying to install bower on CentOS 7, after installing node.js. To install node.js I followed these steps: Step1: wget http://nodejs.org/dist/v0.10.30/node-v0.10.30.tar.gz Step2: tar xzvf node-...
1
vote
2answers
103 views

Launch node & chrome after system boot

I've a RaspberryPi, and I would like to run a nodeJS script (running a server), and then open Chrome when the server has been launched. Currently, I launch my nodeJS script thanks to a script in /etc/...
1
vote
0answers
55 views

Tunslip deactivates WiFi in raspberry pi B+ board

I'm using Contiki operating system with Cooja to simulate a sensor node network. And I'm trying to capture the ip packets it's sending in a Raspberry Pi B+ board (through USB) using tunslip6 and a ...
1
vote
1answer
2k views

CentOS 7 - why the service file is not working to run my bash script?

How to make my bash script as service in CentOS 7? following is failing. $ cat /etc/systemd/system/mybash.service [Unit] Description=mybash Service After=network.target [Service] Type=simple User=...
18
votes
3answers
36k views

How to install latest NodeJS on Debian Jessie?

I just installed NodeJS & NPM on Debian Jessie using the recommended approach: apt-get install curl curl -sL https://deb.nodesource.com/setup | bash - apt-get install -y nodejs However it’s a ...
2
votes
0answers
56 views

Run ssh-agent 24/7 using keychain?

I have a Node.js script that requires ssh-agent to be running 24/7 on my Ubuntu server. I installed keychain and put eval 'keychain --eval id_rsa into my ~/.bash_profile, but that only runs when I ssh ...
1
vote
1answer
176 views

I'd like to run a few terminal commands from inside vim

There are two common things I do when I code something. I either open that file in the browser or run it in node. So I'd like to create a couple of shortcuts inside vim to that effect. I'd like F5 to ...
0
votes
1answer
105 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
184 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
304 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
402 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 ...
1
vote
1answer
143 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 ...
10
votes
2answers
4k 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 ...
1
vote
2answers
387 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
149 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 ...
1
vote
0answers
156 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 ...