Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Troubles with Node 0.12 #38

Open
arthurvr opened this issue Feb 8, 2015 · 6 comments
Open

Troubles with Node 0.12 #38

arthurvr opened this issue Feb 8, 2015 · 6 comments

Comments

@arthurvr
Copy link

arthurvr commented Feb 8, 2015

Having this in both travis and locally.

$ node --version
v0.12.0
$ npm --version
2.5.1
$ nvm --version
0.23.3
module.js:338
    throw err;
          ^
Error: Cannot find module './build/Release/shell'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/home/travis/build/h5bp/html5please/node_modules/execSync/index.js:30:11)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
@mntnoe
Copy link

mntnoe commented Feb 9, 2015

Found the following in the npm install output:

> node install.js

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

Edit: Node >= 0.11 has child_proces.execFileSync, see #36. Perhaps the README should be updated?

@mgutz
Copy link
Owner

mgutz commented Feb 9, 2015

There is a PR that solved this but unfortunately npm no longer allows me to publish updates due to the project having a camelCased title.

@marten-seemann
Copy link

So what is the solution? How do I make execSync build again?

@arthurvr
Copy link
Author

There is a PR that solved this but unfortunately npm no longer allows me to publish updates due to the project having a camelCased title.

@mgutz Well then, it would be nice if you could change the title :)

@nottoseethesun
Copy link

I was able to workaround by using a different package instead, sync-exec .

@miguel76
Copy link

According to the npm site there are more than one hundred packages depending from this one, and these are just the direct dependencies.
Is not possible to contact npm and ask if there is some workaround to the camelCase problem? Like automatic redirection to a new project with a permitted name, or redirection to "sync-exec". They should offer some solution to the problem.

jillmolloy added a commit to jillmolloy/generator-style-prototype that referenced this issue Mar 7, 2015
According to this issue: mgutz/execSync#38 - node 0.12+ is not working with execSync. Since an update cannot be pushed because of the camel-cased name, a new version of was created here: https://www.npmjs.com/package/sync-exec

I've updated the package.json to reference this new version as I was unable to generate using Yeoman because of this issue.
jillmolloy added a commit to jillmolloy/generator-style-prototype that referenced this issue Mar 7, 2015
According to this issue: mgutz/execSync#38 - node 0.12+ is not working with execSync. Since an update cannot be pushed because of the camel-cased name, a new version of was created here: https://www.npmjs.com/package/sync-exec

I've updated the package.json to reference this new version as I was unable to generate using Yeoman because of this issue.
nablaa added a commit to nablaa/ds18x20.js that referenced this issue Apr 6, 2015
ds18x20 cannot be currently installed with node.js 0.12 as
execSync module doesn't work with nodejs 0.12 and the author of
that module cannot make an update to the module to fix that. [1]

We replace execSync with sync-exec [2] which is "an fs.execSync
replacement until you get it natively from node 0.12+".

Also, the error number for ENOENT in nodejs 0.12 is -2 instead of
34 which is was previously. Therefore we remove the check
"errno == 34" (it should be anyways enough to test that
"code == ENOENT").

[1] mgutz/execSync#38
[2] https://www.npmjs.com/package/sync-exec
stuharvey added a commit to stuharvey/node-copy-paste that referenced this issue Oct 23, 2015
Attempting "npm install copy-paste" currently raises the error:

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

This error arises with the dependency execSync and is addressed by
the author of execSync [1] who recommends replacing execSync by
sync-exec [2].

Here we replace execSync with sync-exec, and npm install will run
with no errors.

[1] [mgutz/execSync#38](mgutz/execSync#38)
[2] https://www.npmjs.com/package/sync-exec
sfentress added a commit to concord-consortium/building-models that referenced this issue Jan 26, 2016
`execSync` does not work for versions of Node > 0.11:
mgutz/execSync#38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants