execSync icon indicating copy to clipboard operation
execSync copied to clipboard

node-gyp rebuild step hangs

Open lukelex opened this issue 12 years ago • 4 comments

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 [email protected] 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

> [email protected] install /Users/Lukas/projects/codelogic/assetline/node_modules/execSync
> node-gyp rebuild

lukelex avatar Nov 20 '13 07:11 lukelex

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.

mgutz avatar Nov 20 '13 18:11 mgutz

@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).

priyankaavj avatar Jan 24 '14 01:01 priyankaavj

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.

foxinni avatar Apr 10 '14 07:04 foxinni

@foxinni thanks this trick worked perfectly.

phatmann avatar Aug 28 '15 19:08 phatmann