node-gyp rebuild step hangs #16

Open
lukelex opened this Issue Nov 20, 2013 · 4 comments

5 participants

@lukelex

Hi, I've been trying to install this lib for the past two days and it hangs forever after reaching the node-gyp rebuild step.

➜ assetline $ npm install execSync
npm WARN package.json execSync@1.0.1-pre No repository field.
npm http GET https://registry.npmjs.org/execSync
npm http 304 https://registry.npmjs.org/execSync
npm http GET https://registry.npmjs.org/temp
npm http 304 https://registry.npmjs.org/temp

> execSync@1.0.1-pre install /Users/Lukas/projects/codelogic/assetline/node_modules/execSync
> node-gyp rebuild

@mgutz
Owner

I'm not sure how to assist as node-gyp is the build system used by node. Please see https://github.com/TooTallNate/node-gyp#installation to verify you have the prerequisites for building.

@priyankaavj

@lukelex execSync is dependent on node-gyp which needs "make" installed on your command line.
if you are on a Mac,
-> install XCode
-> install the command line tools (under Preferences -> Downloads).

@foxinni

The hang was occurring during the configure stage. It might be that your xcrun is not setup and causes the hang. Try the following assuming you have Xcode and Brew installed.

TRY brew --config to check if xcrun works.

THEN sudo xcode-select -switch /Applications/Xcode.app

THEN TRY brew --config to fix check if xcrun works.

This should prevent the hang. It also helped to not use rebuild and cd into the directory and running the rebuild manually. node-gyp clean then node-gyp configure then node-gyp build.

@phatmann

@foxinni thanks this trick worked perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment