I am trying to set up Node.js and NPM on a Ubuntu 14.04 machine but am having some trouble. On my first try I kept getting EACCES errors when trying to install packages(sometimes even with sudo), so I completely uninstalled node and npm. Now I’m trying to figure out how to install them in a way that won’t require me
Tag: node.js
Why does grunt not work when installed globally?
I have installed grunt and grunt-cli globally using sudo npm install -g grunt… commands. My working folder is `/opt/web’, please don’t ask why 🙂 Checking grunt version inside `/opt/web’ works: However, I can’t actually run a grunt task from there: If I install grunt locally, it then asks to install all it’s dependencies locally (that are already installed globally (!)).
I have to run node as root to send icmp echo packages for ping – how can I make it secure?
I’m using node’s net-ping to enable my front end to ping by connecting to node via websockets. Because linux will only let root users send out ping requests I’m having to run the script via sudo. I’m not at all comfortable doing this but I don’t think I have very much choice. What I would like to know is are
Node.js bash: /usr/local/bin/node: Permission denied
I’m installing Node.js on Ubuntu machine. I followed official instructions: So, I got node binary in /usr/local/bin/node and all dependencies. But when I run it from command line I get permission error: How can I fix it? How can I run it under my account? sudo node doesn’t work too. Answer You need read- and executable permissions for others. Issue:
How to start node.js on port 80 on a linux server?
When I try to start node on port 80, the error tells me that the port is in use. I imagine that’s Apache. What is the proper way to “take over” port 80, and keep it that way after a server restart? (Linux xxxx.__.com 2.6.32-5-amd64 #1 SMP Tue Jun 14 09:42:28 UTC 2011 x86_64 GNU/Linux) Answer you can use ip
Best practices when running Node.js with port 80 (Ubuntu / Linode) [closed]
Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago. Improve this question I am setting up my first Node.js server on a cloud Linux node and I am fairly new to the details
Which threading model is used by node.js? [closed]
It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago. When a new client connects to a server running node.js, does it use
npm fails to build socket.io with Error “Not compatible with your version of node/npm: commander@0.5.0”
I cloned socket.io from https://github.com/LearnBoost/socket.io.git bit it fails with the following Message My current version of node and npm is as follows Is it that my node version is higher than the supported upper limit? If so what is the solution? I am clueless as to how to proceed from here. Please !!HELP!! Answer npm -f install socket.io just solved
Error installing NPM for node.js
I’m trying to install npm on ubuntu 11.04 using the “git all the way” method found in this gist I keep getting this error after running sudo make install on npm I know this is something wrong with bash, but I’m not very good with bash. EDIT running the node command in the terminal brings up the node shell as
How can I uninstall or upgrade my old node.js version?
some time ago I have installed node.js on my Ubuntu system. with the following steps (dump of my history): My Version is v0.3.2-pre. Please, is there a clean way to get a new version by uninstall/install or upgrade? I have not much experience with make or git. Thanks Answer Do the exact same thing again. The new binary will be