-
Notifications
You must be signed in to change notification settings - Fork 5
Cannot open include file: 'setimmediate.h' #21
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
Comments
Can you share more debug output, e.g. npm-debug.log? |
Console error:
The debug log file is pretty big, and I'm not sure which parts are relevant:
|
Hm, maybe this is a Windows-specific issue? I’ll try to look into this tomorrow, thanks for the report. |
I am also getting same issue on windows |
Any fix available @addaleax ? We have the same problem. |
Also getting this failure on Windows 10 after upgrading some packages. Specifically, after upgrading esprint to the latest version. |
I went back and tried all the old versions of this package and only 1.0.0 builds correctly for me. All the other versions have this |
@kaiyoma Unfortunately, I can't reproduce this through |
This package.json is enough to do it for me:
Here's the output of
|
@q00u @kaiyoma I could reproduce this after some trying -- unfortunately, both of you most likely removed information that is relevant for debugging this, namely that the path you're installing into contains spaces. 😕 I'll try to fix this, but building native code in paths with spaces tends to go wrong more often than not, and I'd avoid it if at all possible. |
Neither my user folder nor the project folder have any spaces in them. nodjs is installed to Program Files though, and that does have a space. |
@q00u With spaces is the only way I could reproduce. It should be fine for Node.js itself to be installed in a path with spaces. Either way, the spaces issue is the one I will fix because it’s the only one with enough information to address it at the moment. |
I tried a fresh install with the package.json above and everything worked correctly. 🎉 |
Great! I’ll close this out, if anybody has similar trouble, feel free to open a new issue. :) |
fatal error C1083: Cannot open include file: 'setimmediate.h': No such file or directory
(during
npm install
after a fresh re-install/upgrade of npm 12.10.0, on an existing project that previously worked fine)I'm so confused. setimmediate-napi IS listed as a dependency, so why can't it find it?
The text was updated successfully, but these errors were encountered: