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.

435 questions
45
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…
36
votes
10 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
  • 547
  • 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
  • 837
  • 2
  • 12
  • 20
32
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
  • 431
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
25
votes
10 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
  • 351
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…
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,585
15
votes
2 answers

How to search the DNF package manager for all available versions of a package?

What I want to know is how to search for all available versions of a particular package. It might help to understand my situation to understand exactly what I want to do. I develop software for clients using Node.js, npm, TypeScript, JavaScript,…
13
votes
1 answer

How to pass node parameters such as '--trace-deprecation' in npm scripts

I am a bit ashamed that I cannot find a good solution to this myself, but alas. Using npm we generally have a package.json file with a scripts segement for storing the tasks we want our toolchain to execute routinely, e.g.: "scripts": { "build":…
Zsar
  • 537
13
votes
3 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,625
12
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
  • 131
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…
11
votes
2 answers

Where is Node.js installed? Why can't I see /usr/local/bin/node?

I installed node and made sure that /usr/local/bin is in my $PATH. I checked for node install version and location [~]$node -v v10.15.1 [~]$which node /usr/local/bin/node Why, when I cd into /usr/local/bin/, is there nothing there? I'm on…
alan_k
  • 141
1
2 3
28 29