Questions tagged [node.js]

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

Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

431 questions
41
votes
10 answers

How to fix `listen EACCES: permission denied` on any port

Has anyone experienced something liked this with node: I was running Angular, my Windows crashed and restarted and now when I try ng serve I'm getting: Error: listen EACCES: permission denied 127.0.0.1:4200 at Server.setupListenHandle [as…
34
votes
8 answers

How to exclude node_modules directory from OneDrive synchronization?

I’m a front-end developer, and I keep my front-end projects in OneDrive. Due to how Node.js organizes dependencies, each project has a node_modules directory with tens of megabytes of tiny files which take forever to sync. What can I do to avoid…
Ivan Akulov
  • 527
  • 2
  • 5
  • 15
34
votes
5 answers

How do I add VCBuild.exe to Windows 10 w/o Visual Studio

So I am trying to compile gyp and it wants to call VCBuild.exe apparently... MSBUILD : error MSB3428: Could not load the Visual C++ component "VCBuild.exe". To fix this, 1) install the .NET Framework 2.0 SDK, 2) install Microsoft Visua l Studio…
Jackie
  • 817
  • 2
  • 11
  • 19
31
votes
14 answers

How to install NPM behind authentication proxy on Windows?

I need to run the latest version of Node and NPM on Windows. I installed Node 0.5.8 and downloaded the sources of NPM from GitHub. The steps I followed to install NPM were listed on its GitHub site but I have a problem running the following command:…
Tobias
  • 421
  • 1
  • 4
  • 6
25
votes
3 answers

installing node.js after apt-get install node

Im trying to install node.js and I made the mistake of installing apt-get install node. Which is not node.js. I'm able to find the right node.js on git hub, build and make everything. Everything seems to be installed. But I get this error when…
brian
  • 251
  • 1
  • 3
  • 3
23
votes
9 answers

Getting “npm ERR! Unable to authenticate, need: Basic realm="Artifactory Realm"” when attempting to install Angular CLI

I'm facing this error when I'm trying to install Angular CLI. Please help me with the issue: npm ERR! code E401 npm ERR! Unable to authenticate, need: Basic realm="Artifactory Realm"
shiva
  • 331
  • 1
  • 2
  • 3
20
votes
5 answers

How to access NodeJS server on LAN?

I'm not the most knowledgeable guy ever with networking, but here goes... I've created an application with NodeJS and I'd like to test the application on my LAN with my family. The application listens on port 1337 for connections and I can access…
Joel Murphy
  • 301
  • 1
  • 2
  • 7
16
votes
5 answers

Always run node with the --harmony flag

I always want to run Node.JS with the --harmony flag. Is there a way to easily have this flag turned on by default? (Note: I'm running on Windows, so I only have access to Cygwin or Mingw as shells.)
Randomblue
  • 3,335
  • 9
  • 33
  • 48
13
votes
2 answers

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 as the ‘homepage’ Click “Open dedicated DevTools…
13
votes
1 answer

How does the protocol "mongodb" work?

To connect to a MongoDB database from a NodeJS application, the documentation says to connect an address like this one: mongodb://localhost:27017/myproject where mongodb is the protocol, in place of http (or https). I'm curious how this works…
CodyBugstein
  • 1,515
  • 7
  • 23
  • 35
12
votes
3 answers

uglifyjs: command not found

I'm trying to use uglifyjs via command line, and it's not going well. I've tried many variations of $ [sudo] npm install uglify-js -g, but in all cases, when I try to run uglifyjs as a command $ uglifyjs it says command not found. In every case, it…
andrewheins
  • 273
  • 1
  • 2
  • 8
11
votes
2 answers

What is the best way to install latest nodejs with npm on alpine linux

I am trying to build my own docker container based on alpine linux and I need to add multiple services in that container (yes it is not recommended as best practice but at the moment my org devops is bit behind the curve and demanding a single…
Andy
  • 235
  • 1
  • 2
  • 8
10
votes
3 answers

How to get Fish shell and NVM both installed with Homebrew to work together?

I am trying to manage my packages for OSX using Homebrew as much a I can. I have installed both the Fish Shell and NVM using Homebrew but cannot get Fish to recognize my NVM installation. NVM commands are run fine when run with Bash, probably…
Sam
  • 111
  • 1
  • 7
10
votes
5 answers

Why does Alpine apk report "unsatisfiable constraints" when installing an older version of Node.js?

I'm trying to install an older version of Node.js (4.4.4) on Alpine. Here are my commands: apk update apk add nodejs-lts=4.4.4-r0 When I execute, I get an error (running as root because I'm using the Alpine:3.4 Docker image): / # apk update fetch…
Matthew Adams
  • 233
  • 1
  • 3
  • 7
8
votes
1 answer

After npm install -g, command still not found?

I don't know what's going on, but none of my installed node packages are actually registered. npm and node work fine, but if I sudo npm install -g ffmpeg or brew, they're listed at /usr/local/lib/node_modules but brew -v and ffmpeg -v don't do…
neaumusic
  • 243
  • 1
  • 2
  • 10
1
2 3
28 29