Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [node.js]

Node.js is a platform built on Google's V8 JavaScript runtime

0
votes
0answers
16 views

Action on Google- How to append/ add user selected carousel option to order preview?

I'm making an Actions on Google project that can do the basic transaction flow (cart building, payment ect.) I'm having trouble figuring out how to add what the user selects from the carousel to the ...
0
votes
1answer
8 views

Starting nodejs server on 2 different ports with websocket giving EADDRINUSE 9856 on CentOS

I am using 2 different node servers for testing and production on the same computer. When I start the first server it is running perfectly but when I start the second server it is giving the following ...
0
votes
1answer
15 views

Can't install Gulp on Ubuntu 16.04.5 LTS

When I try installing gulp on my ubuntu server I always get these error. I don't know what's wrong? It happens in a new folder after a fresh npm init. martin@serveralpha:/var/www/xyz$ npm install --...
0
votes
0answers
9 views

Deploying WebApp with Next/Now

OS: Debian 9 (stretch) Saved Global npm install: react@16.7.0 react-dom@16.7.0 next@7.0.2 Building a static webapp with Next framework, npm run dev works fine in localhost:3000 with package.json: "...
0
votes
0answers
4 views

Sails js Models not available in controllers [migrated]

I have generated controllers and models using sails generate. I can see all the models are loaded with console.log(sails) enter image description here I have tried two ways both return cannot find ...
0
votes
1answer
8 views

CORS issue with one machine

I have a VM where I have installed my Angular 6 based UI and Node + Express(I have enable CORS using app.use(cors());) based REST API. Both are hosted on IIS 8.5 in the VM on AWS. I have 2 laptops ...
1
vote
1answer
40 views

Can Node JS connect to MongoDB and mySQL simultaneously?

I have a developer that says Node JS can only connect to multiple databases on the same server. I would like her to be able to connect to MongoDB and mySQL at the same time ... Is it possible? And ...
0
votes
0answers
10 views

Upgrade Mongoose to version 5

I'm currently using Mongoose version 4.4.5 for my MEAN stack application. I need to update Mongoose to version 5 or higher to resolve an issue where Mongoose versions prior to 5.0 are incorrectly ...
0
votes
0answers
9 views

Npm outdated gives error

I'm trying to determine which of my npm packages are outdated. When I type npm outdated I get the following output instead of packages and their current/wanted/latest versions. I have no clue how ...
0
votes
0answers
8 views

Nodejs Express cannot be access after many user (10 or more) on VPS

I create a REST api for exam simulation using Expressjs then running it on my VPS. Everything works fine when i test it, but after 10 user login and doing the online test, the api cannot be access My ...
-3
votes
0answers
21 views

Visual Studio Code debugging error [on hold]

I just started learning Nodejs so I need visual studio code to debug and launch my code in Nodejs. However I cannot add "configurations" and when i attempt to launch debugger it gives me two errors 1 ...
0
votes
0answers
52 views

Getting errors while >> sudo npm install -g onoff in raspbian OS

error : epoll@2.0.7 install /usr/local/lib/node_modules/onoff/node_modules/epoll node-gyp rebuild gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/...
1
vote
0answers
10 views

How to install Jest on macOS Mojave

On a MacBook Pro (Mojave) I have installed Node (it works). npm install --save-dev jest runs without errors, BUT jest is still not available: jest --version bash: jest: command not found What is ...
1
vote
1answer
20 views

How can I configure the jasmine's random on gruntfile?

How can I configure the random option using grunt-contrib-jasmine? I can do it directly with jasmine's command line, but running jasmine's task by grunt-cli I didn't find the random option. Then the ...
1
vote
0answers
9 views

How to “capture” child_process output in node.js [closed]

I'm using youtube-dl to download videos from YouTube. When I call it from node.js spawn child_process, it downloads video, everything works fine, but I'm not able to get any information from ...
0
votes
0answers
13 views

Keep software running in VPS [closed]

I bought an Ubuntu virtual private server to run Node JS apps 24/7, I managed to connect to it via PuTTY and got my apps running, but when I close the PuTTY window or shut off my pc, the apps stop ...
0
votes
0answers
4 views

i got separate code in react after saving in visual studio

this is a react app and after saving the code I got separate tags and code I don't know what is the problem
0
votes
1answer
9 views

NPM installing global packages in /root/node_modules

I've installed and used node/npm on more systems than I care to count, the majority being Linux/CentOS machines. I have a CentOS 7 installation that installs global packages in /root/node_modules. ...
1
vote
0answers
13 views

Can't install Canvas 1.6.13 due to missing Windows 8.1 SDK

I'm trying to install Canvas in order to install chartjs-node, but whenever I try, I get this error: C:\Users\Mark\Desktop\Bot>npm install canvas@1.6.13 > canvas@1.6.13 install C:\Users\Mark\...
0
votes
1answer
99 views

Getting warning when running AppiumDoctor in MAC OS X, node v11.6.0 is installed

It is a new install. After installing node.js, Java, I run appium-doctor and got these warnings. WARN AppiumDoctor ✖ opencv4nodejs cannot be found. WARN AppiumDoctor ✖ fbsimctl cannot be found WARN ...
0
votes
0answers
22 views

Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (57)

I am getting the error: Node Sass does not yet support your current environment: Linux 64-bit with Unsupported runtime (57) while running gulp command. I have tried deleting node_modules ...
0
votes
0answers
47 views

What package installs “/bin/open” in Ubuntu

Ok so I looked first on the Ubuntu package site at https://packages.ubuntu.com/bionic/ but there was no search mechanism, which seemd odd to me. Maybe there is another site to check that I am missing? ...
0
votes
0answers
50 views

Error installing appium

Following is my log: yaoweiqideMBP:lib yaoweiqi$ npm -g install appium npm WARN deprecated fsevents@2.0.1: Not Ready For Production npm WARN deprecated cross-spawn-async@2.2.5: cross-spawn no longer ...
1
vote
0answers
25 views

Mongodb Logs flood

I am starting to use Mongodb to storage my data, and when I started the service, I am getting a log flood, I want to turn off this log saves, I don't mind if I do not have any kind of logs, it is ...
0
votes
0answers
8 views

node.js npm bungle installation error

I am trying to install bungle compiler using node.js npm but i face the following error, please help. Also, I am new to using nodejs. > node-sass@4.11.0 install /home/user/node_modules/node-sass &...
0
votes
0answers
11 views

Install and Use LTS Node on ndenv

To install and use lts version of node, you can just use the command: $ nvm install --lts $ nvm alias default lts/* How can you do the same on ndenv?
0
votes
1answer
88 views

Error when installing ffmpeg-binaries using npm

I needed ffmpeg-binaries for playing a audio file thru a voice channel with my discord bot but npm just returns an error. Error message: C:\Users\malte>npm install ffmpeg-binaries --save > ...
0
votes
0answers
4 views

How get data from MongoDB and display using Vue.js [migrated]

im working to develop server and index for web chat application. my goal to display the name of users that are stored in MongoDB use Vue.js , The name appear in the console but it doesn't display ...
2
votes
1answer
336 views

bcrypt@3.0.3 install: `node-pre-gyp install --fallback-to-build` bcrypt 3.0.3

Hello i tried everything to solve this issue, nothing worked. im trying to install bcrypt and it drops this meesage bcrypt@3.0.3 install: node-pre-gyp install --fallback-to-build the log of the ...
0
votes
0answers
19 views

HEROKU Text file getting reverted to commit status after some days

I'm having a problem with Heroku, I'll explain my situation here: I've made an app that edits a txt file based on some commands that are run while the app is up. For example let's say I create a txt ...
-1
votes
0answers
23 views

nginx give me error 500, without any error from nodejs

So, I'm using nginx nodejs stack for mailgun receive inbound to forward message, and the message passed to my api. But it gives error 500 to mailgun log from nginx, I can't send response.status(...
0
votes
0answers
14 views

How to control exclusive Firefox instance from CLI? Trying to control Netflix video from another computer

I'm setting up a simple SmartTV system. I have set up a Node.js server that allows me to control VLC using web UI. But these days, lot's of watching goes through browser, not local media. So I'm ...
0
votes
0answers
7 views

Push to non bare remote repository

i'm trying to push a Node.js project to a repository into a raspberry with linux through SSH. The only way i got it working was creating a bare repository into the raspberry and pushing to it, it ...
0
votes
0answers
26 views

Node.js can't install gulp

I have installed node.js and tried to use npm to install gulp for my web development but I am getting error for gulp: $ npm i gulp browser-sync gulp-sass --save-dev npm ERR! code ...
0
votes
1answer
63 views

node.js base64 encoding a string yields slightly different results (local vs heroku)

I have done some searching and I gather that the issue may be down to a new line character that is being handled different locally vs on heroku but I am not sure where or how to deal with that. I ...
4
votes
1answer
205 views

Installing Node Causes Windows 10 Machine to Repeatedly Restart

I've installed NodeJS, the Current (not LTS) version on my Windows 10 system. That seems to have installed at least a couple additional things along with it, namely Chocolatey and BoxStarter. Since ...
0
votes
0answers
33 views

Npm serve from vagrant machineand windows host

I am trying to serve from a vagrant machine which is bridged an I would like to access the webpage from every device connected to that public network (experimental purposes). I access the machine with ...
0
votes
0answers
111 views

How to remove --minUptime warning from forever.js

I'm using forever js for starting my application, I have fired a npm install command on the server now forever giving warning as warn: --minUptime not set. Defaulting to: 1000ms warn: --...
2
votes
1answer
75 views

Is there a way to directly open Chrome's “dedicated devtools for node”?

I use FireFox for my daily browsing; so the process of getting a Node inspector running is somewhat annoying: Launch Chrome Manually visit chrome://inspect, because it refuses to set a builtin page ...
1
vote
0answers
423 views

Can't install NPM in Alpine Linux, although it's present in repos

Here's my Dockerfile with instructions that all work except for the last line: RUN echo http://nl.alpinelinux.org/alpine/v3.5/main > /etc/apk/repositories; \ echo http://nl.alpinelinux.org/...
1
vote
0answers
461 views

SyntaxError: Unexpected identifier when trying to installing npm globally

I am facing some trouble! When running the following command subrara@subrara-desktop:~$ sudo npm install npm --global I am getting the following: /usr/lib/node_modules/npm/bin/npm-cli.js:85 ...
0
votes
0answers
22 views

nginx loadbalance for nodejs socket.io

I am trying to use nginx for reverse proxy, and direct to two servers running node.js with socket.io(websocket long connection.) When I pass it to one server, it works fine. But when I try to load ...
0
votes
1answer
682 views

Many processes such as git and node are running 10x too slow on Windows 10, but run fast in safe mode

Several command-line programs seem a little slow on a PC. How can I troubleshoot? For example, on this PC, It takes over a half-second to run git status: PS> for (;;) { Measure-Command { git ...
0
votes
1answer
47 views

How to start node.js app on machine boot by creating a boot service

My machine is Ubuntu 16.04. I want to start my node.js application when the machine boots up everytime. According to this post about autostarting services. I tried to make a service by doing the ...
2
votes
0answers
652 views

How to deploy Vue application and Node backend server application on nginx?

I have vue frontend application which I have built generating index.html and dist folder containing all the bundles. In addition I have developed another express base node application which provides ...
0
votes
0answers
27 views

Linux, virtual box, windows, npm, vpn, iphone, how to connect?

I am developing front-end for a website. In work, on my Linux PC, I have to use Virtual box with Windows, because our client want us to use VPN that is only for Windows - (check point end point ...
0
votes
1answer
253 views

How to seamlessly multi target Electron debug with VSCode using the legacy protocol, electron 1.6.7 , node v6.11.1, vscode 1.17 and firefox?

I recently read the article ,Multi target Electron debugging with VSCode whose URL is https://kwonoj.github.io/en/post/multi-target-dbg-electron-vscode/ and got it to work seamlessly in an Oracle VM ...
1
vote
0answers
28 views

NodeJS Server on Raspberry Pi not calling function

I currently have a raspberry pi running Raspian OS which a Node JS server running on port 8080. I then setup NGINX to be used as a reverse proxy to route incoming port 80 traffic to my server at 8080....
2
votes
1answer
284 views

How do I map extensions in SublimeText

I am currently working with nodejs modules and, despite being just js files, it uses the mjs extension when I declare --experimental-modules. Is there a way I can map Sublime Text to treat mjs as js?
0
votes
0answers
515 views

How to run an angular/node.js site on Windows Server 2016

Please visit this site here: www.develop.riskalive.com It's an angular 2 site running on a linux machine with node.js. We are trying to transfer the site over to a Windows Server 2016 machine. I'm ...