I’m installing Node and CoffeeScript on LinuxMint 10 machine (working under VMware virtual machine). Totally new to Linux, unfortunately.
I successfully went through the steps of Chapter 1.1. “$ node -v”, “$ npm -v”, and “$ coffee -v” return meaningful values. Where I got an issue is with adding node_modules subdirectory to NODE_PATH.
”$ npm ls -g” on my machine returns “/home/vkelman/local/lib”. So I then typed the following: “$ export NODE_PATH=/home/vkelman/local/lib/node_modules”. Is it what I was supposed to do? (Again, I’m new to Linux.) Or should I run some command which included “~/.profile”? Anyway, “> require(‘coffee-script’)” returns “Error: Cannot find module ‘coffee-script’”.
What did I do wrong?
By the way, LinuxMint has some graphical windows-like system, including an analog of Windows Explorer. So I looked at “/home/vkelman/local/lib/node_modules” folder and it indeed includes “coffee-script” subfolder. It is here but I didn’t set NODE_PATH properly.