I am trying to do a simple
sudo npm install jsdom
but I get the following error. I used these instructions for installing node. This was a clean install of lubuntu. The entire setup is listed in the following steps:
- install lubuntu and virtual box guest additions
- sudo apt-get install eclipse-cdt
- sudo apt-get install g++ curl libssl-dev apache2-utils
- sudo apt-get install git-core
- cd .. to the root directory
- sudo chmod 0777 / (I know this is completely insane. It's just a test virtual OS).
- git clone git://github.com/ry/node.git (this creates /node with files inside)
- cd node
- ./configure
- make
- sudo make install
- sudo npm install jsdom
I have used
sudo npm -f install --nodedir=/node jsdom
but even then if I try to use the module in a script it crashes saying there is no implementation for the module.