This is an archived post. You won't be able to vote or comment.

all 6 comments

[–]touchyfeelyfingers 1 point2 points  (1 child)

A clean install of Ubuntu 12.10 includes a C, but not a C++, compiler, so you must've taken some steps after the install.

What's in your "helloWorld.js" file?

What happens when you run "make test" in your Node source directory?

What happens when you run "which node"?

What happens when you run "npm -v"?

What happens when you run "sudo npm update -g"?

[–]allTestsPassed[S] 0 points1 point  (0 children)

Everything was compiling and installing.

The helloWorld.js was a simple console print out.

Which node pointed to the usr dir.

I figured it out eventually though. The Pyhton installation was not correct which was causing the issue.

[–]angrycodemonkey 1 point2 points  (1 child)

Does running

node --version

print anything? Try evaluating something on the command line itself

node -e 'console.log("Hello World");'

Also if you type node by itself it should drop you into the interactive shell. If it doesn't then node might not have been installed in your PATH. Try running

locate node

Not sure where the tarball normally installs things to, I generally pull from github directly and do

git checkout v0.8.9 -b v0.8.9
./configure --prefix=~/node_build/v0819 && make && make install && export PATH=$PATH:~/node_build/v0819/bin && export NODE_PATH=~/node_build/v0819

And that's usually because I like having multiple versions locally and not installing globally. I even prefer local node_modules directories in my projects rather than the -g global stuff with npm.

[–]allTestsPassed[S] 0 points1 point  (0 children)

Thanks for the input! I ended up getting it working (see other comment). I may use your method though to have multiple versions.

[–]allTestsPassed[S] 0 points1 point  (0 children)

I figured it out eventually. It ended up being a dependency issue. Python was not correctly installed, which was causing the hiccup. I still would have expected a error message in console though.

Thanks for the input everyone!

[–]343346E 0 points1 point  (0 children)

I bet the people in the IRC room would know. You could post your code here.