Skip to content

Tag: node.js

Browsersync on Linux

I did install Browsersync on Ubuntu using command line: Now, I went to check for version: where I get error message: What should I do now? Answer I got it fixed installing nodejs-legacy: Then checked back to be worked: Thanks to @Biffen for his tip 🙂

Node.js installation error

I have installed Node.js, NVM and NPM according to : https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server My working directory looks like this: Working_FilesWebRTC which contains the files: package.json server.js and Working_FilesWebRTCviews which contains an index…

Docker container apt-get install can’t find package

I’m trying to spin up a docker container that populates mongo via a node.js script that I have. With the script below, I get the error : with this dockerfile: Why does apt-get not find nodejs? Answer Seems i was missing RUN curl –silent –location https://deb.nodesource.com/setup_0.10 | bash …

Running git from node.js as a child process?

I am attempting to write a generic command-runner in Node.JS – however that’s not massively important. My setup is as follows: I have a list of string commands that are executed using child_process.exec one after the other. I want to run git from one of these commands, specifically a pull. The loc…

permission denied when using su to execute a node program

here is my node program it is in /home/test/ and the test directory ‘s privilege is rwxrwxrwx. when i run node test.js with the tomcat account, the data.txt could be created. but when i run a service to execute su tomcat -c ‘node /home/test/test.js’, the data.txt could not be created and the…