As I run this piece of code using node a.js
:
var sys = require('sys');
sys.puts('Hello, World');
I'm getting the following as an error
axconfig: port 1 not active axconfig: port 2 not active
As I run this piece of code using
I'm getting the following as an error
|
|||||
|
This problem is occur in ubuntu,so I resolved this problem by git. Clone this new source from github and do following actions:
Then this will be work well. |
||||
|
The easiest way is to remove the node installation first and then install npm. npm is the Node Package Manager, this will automatically install nodejs itself |
|||
|
Brandon Helwig is correct. It just happened to me. In general, if you get this type of error, you have installed the wrong package. Here are more instructions for you to install one of the latest versions of Node.js. Fix
This will remove the accidentally installed package. Both names for the package If you do
This should get you the latest version of If you are in need of an bleeding edge version, you can install from the source. But I think this is way cleaner. |
|||
|
If Node.js installation as suggested by ninja works for you (like on AWS Ubuntu):
you might still want to add node to your system path like this:
so you can type
instead of
Find your node installation path simply by typing
|
||||
|
If you are on ubuntu, follow:
You need to install nodejs and not node! |
|||||
|
this problem no where related to nodejs. Do not install node using the command So uninstall node from Manually Download nodejs from Here or from GitHub but make sure you install the stable branch(0.4.x).Unpack the nodejs. For installing please follow the After installing then set the environment variables |
|||||||||
|
you installed node, you want the package called nodejs |
|||||
|
Warning: This is old but it might still work. You didn't install node.js but the package node (that contains some other unrelated software) for your linux distro. You can install node.js three ways: Using git, downloading the version file, or installing through the package manager, I recommend using the package manager for ease-of-use and the ability to easily update. Package Manager Check out Installing Node.js via Package Manager. It has instructions on how to install using the package manager of your preference. Direct Download Go the the downloads page of node.js and download the package for your OS. Don't forget that, doing i this way, doesn't auto-update node.js later on! Source Compilation / git First you need git and a compiler, here is how you install them on debian/ubuntu (this depends on your package manager):
(If you don't want to use git, you can download the source code from the website. You still need build-essential or equivalent for your OS.) Then go to a folder where the "node" repository will be placed, something like
Then enter the node directory, configure it and build it.
Everything should go well. Before installing node you can optionally run the tests to check for any problems:
You can finally install node, this allows you to run the node command anywhere in the system and the javascript libraries to be installed.
...and we are done.
You can test those lines of code using node-repl (node's REPL, think "interactive interpreter"), just type |
|||||||||||||||||||||
|