Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7960553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T04:47:17+00:00 2026-06-04T04:47:17+00:00

I am trying to build d3.js under Windows. I have installed cygwin to run

  • 0

I am trying to build d3.js under Windows. I have installed cygwin to run the makefile. However, as part of make install, it calls ‘npm install’, and this call fails:

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
 Error: Cannot find module 'C:\cygdrive\c\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js'
   at Function._resolveFilename (module.js:332:11)
   at Function._load (module.js:279:25)
   at Array.0 (module.js:479:10)
   at EventEmitter._tickCallback (node.js:192:40)

Makefile:230: recipe for target `install' failed
make: *** [install] Error 1

The problems seems to be that the cygwin path prefix (‘cygdrive\c’) is added to the file path (other than that, the path is correct).

I am wondering if there is a good workaround for this problem? I have tried to export the NODE_PATH variable as well as changing it in the Makefile. However, this does not affect this error (and I would prefer to keep the Makefile as it is).

EDIT: It worked when I called ‘npm install’ from the Webstorm command line (without cygwin). I had to install contextify (jsdom requirement) manually (‘npm install contextify -f’ and then copy the .node file from https://github.com/Benvie/contextify/downloads into build/Release for contextify), and to run ‘npm install jsdom’ and ‘npm install vows’ afterwards.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T04:47:20+00:00Added an answer on June 4, 2026 at 4:47 am

    You can edit the npm script so that it is cygwin-aware:

    #!/bin/sh
    cygwin=false;
    case "`uname`" in
      CYGWIN*) cygwin=true;
    esac
    
    basedir=`dirname "$0"`
    
    if $cygwin; then
        basedir=`cygpath -w "$basedir"`
    fi
    
    if [ -x "`dirname "$0"`/node.exe" ]; then
      "$basedir/node.exe" "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
    else
      node "$basedir/node_modules/npm/bin/npm-cli.js" "$@"
    fi
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have latest cygwin with g++ 4.5 installed, under windows xp. The compiler was
Trying to build Xuggler under Windows. Xuggler is core native code functions wrapped into
I am trying to build Vim from the source packages, under Cygwin, to enable
I'm trying to build and install the ZeroMQ libraries (2.1.11 cloned from GitHub) under
I'm trying to build CGAL for windows to use in my project under Visual
I'm trying to install the firebird driver for node under windows. When I try
I'm having a very strange problem when trying to run RapidXml 1.13 under Windows
I'm trying to build tigervnc under ubuntu 11.10 32bit. http://tigervnc.svn.sourceforge.net/viewvc/tigervnc/trunk/BUILDING.txt?revision=4879&view=markup In the configure step
I have windows 7 (64-bit) and I am trying to configure opencv 2.2 for
I have a quad-core i7 CPU on my windows desktop. I am trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.