Giter Site home page Giter Site logo

Comments (27)

julianxhokaxhiu avatar julianxhokaxhiu commented on May 18, 2024 2

Digging a little on the net I've found that this is affecting only guys that are using Python 3.x as their default python executable ( see nodejs/node-gyp#526 and atom/atom#1933 ). To fix this issue ( call it a workaround) you should do this on the project you're having this issue:

npm config set python /usr/bin/python2.7
npm install

Make sure that you're having Python 2 installed as a package in your distro ( my solution is based on Ubuntu 14.10 ).

Have fun :)

from execsync.

Kikobeats avatar Kikobeats commented on May 18, 2024

I have the same problem!

The problem is that your system doesn't make the build:

[execsync v1.0.2] Attempting to compile native extensions.
[execSync v1.0.2]
    Native code compile failed!!

In my case the problem appear today, yesterday all worked fine and the repository hasn't been updated. ¿?

from execsync.

Kikobeats avatar Kikobeats commented on May 18, 2024

Hi,

In my case:

  • download the proyect
  • do node-gyp rebuild
  • see the message error :)
Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

damm!

from execsync.

bdavidxyz avatar bdavidxyz commented on May 18, 2024

I had same problem than @olanod. Solved by simple 'node-gyp rebuild'

from execsync.

n8agrin avatar n8agrin commented on May 18, 2024

We hit this too. There was no way we could fix. Running node-gyp did not fix the problem.

from execsync.

mrfelton avatar mrfelton commented on May 18, 2024

Also affects me

from execsync.

scheffield avatar scheffield commented on May 18, 2024

@julianxhokaxhiu unfortunately, this doesn't solved my problem.

Besides that, the most annoying thing about that bug is that it appears out of a sudden. Yesterday everything worked perfectly. Can everyone come up with an idea for an explanation?

from execsync.

julianxhokaxhiu avatar julianxhokaxhiu commented on May 18, 2024

@scheffield are you sure? For me it worked also two days ago on Arch Linux where I did my new dev server (same error, same fix and now working awesome).

Try to remove your node_modules folder after you set the npm config for python :)
Finally make sure (obviously) that python 2 is installed and running on your machine...

from execsync.

n8agrin avatar n8agrin commented on May 18, 2024

We resolved this a short time ago. Turned out my coworker who was hitting this problem had a rogue, custom build of make in his path. Sorry for the confusion.

from execsync.

cperryk avatar cperryk commented on May 18, 2024

Also getting this issue, and I'm running Python 2.7.6.

Running node-gyp rebuild doesn't work for me (command not found).

This also did not fix the issue:

npm config set python /usr/bin/python2.7
npm install

from execsync.

ccgroupdev avatar ccgroupdev commented on May 18, 2024

Also running in this issue. I have tried all of the suggestions above and still no luck.
Any other suggestions? Much appreciated.

from execsync.

sabreena avatar sabreena commented on May 18, 2024

I am facing the same issue. Tried the above suggestions but of no help.
I am using OSX 10.9.4. Need help urgently. That will be much appreciated.

from execsync.

julianxhokaxhiu avatar julianxhokaxhiu commented on May 18, 2024

I would suggest to use exec-sync from now on, compatible with nodejs 0.12.x and anyway it doesn't depend on libc, python or stuff like this :)

from execsync.

sabreena avatar sabreena commented on May 18, 2024

I am still getting the same error even after using sudo npm install exec-sync
The error is:
events.js:72
throw er; // Unhandled 'error' event
^
Error: Cannot find module './build/Release/shell'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object. (/Users/sabreena/.nvm/v0.10.24/lib/node_modules/generator-drupal-theme/node_modules/execSync/index.js:30:11)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

Any other solution to it?

from execsync.

julianxhokaxhiu avatar julianxhokaxhiu commented on May 18, 2024

Clean reinstall NPM and remove all node_modules folders. Then just run again npm install :)

from execsync.

webpolis avatar webpolis commented on May 18, 2024

No solution works.

from execsync.

megatolya avatar megatolya commented on May 18, 2024

No solution works to me too

from execsync.

sgarbesi avatar sgarbesi commented on May 18, 2024

No solution here either.

from execsync.

webpolis avatar webpolis commented on May 18, 2024

Only solution is switching to https://www.npmjs.com/package/exec-sync

from execsync.

sgarbesi avatar sgarbesi commented on May 18, 2024

@webpolis Using a 3rd party library, grunt-favicons otherwise I would. Still looking, let you know if I find anything.

from execsync.

sgarbesi avatar sgarbesi commented on May 18, 2024

@webpolis Wound up just forking and updating manually.

from execsync.

luishdez avatar luishdez commented on May 18, 2024

These are some alternatives:

from execsync.

cphyc avatar cphyc commented on May 18, 2024

It may be worth noting that you can have issues using node v0.12 instead of v0.10 for example, try downgrading it using nvm.

from execsync.

aclowes avatar aclowes commented on May 18, 2024

Easily solved on a Mac: run sudo make to cause Xcode to prompt you to agree to the license terms, then run npm install execSync again.

from execsync.

fmquaglia avatar fmquaglia commented on May 18, 2024

@aclowes' solution worked for me. Thanks pal! 👍

from execsync.

rvergis avatar rvergis commented on May 18, 2024

@aclowes thanks, that worked for us.

from execsync.

julianxhokaxhiu avatar julianxhokaxhiu commented on May 18, 2024

Time to close this @mgutz ?

from execsync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.