pythonnode.jsenvironment-variablesnode-gypwindows64

Installing jsdom on nodejs, node-gyp ERROR: spawn ENOENT


After three days trying to install jsdom on Windows Server 2008 R2 x64 i finally decided to post here as all the solutions given in the other similar posts did not work for me.

Here's what I've done so far on my x64 OS:

my software versions are:

When i try to install jsdom ("npm insall jsdom" on project folder) i get the following error:

I can read in every similar post that it is python environment variable issue but i already registered them:

I also tried installing node.js v0.8.25 with same result, so i went back to v0.10.33.

I also tried setting "npm config set python C:\Python\" before launching npm install.

I don't know what else to try..


Solution

  • follow my README file to install D3 (it depends on Jsdom). Cheers

    INSTALLING D3 NPM PACKAGE IN NODEJS ON WINDOWS 7x64

    D3 pkg cannot be installed properly on Windows OS without a right setup. D3 depends on JSDOM, which has a dependency on CONTEXTIFY (Python and C++).

    The following steps applied on Windows 7x64 Ultimate:

    INSTALL

    SETUP (set environment variable windows)

    RUN

    Finally, install d3 with [npm install d3].