-
Notifications
You must be signed in to change notification settings - Fork 285
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
Error building new project (neon-build) #186
Comments
I've just published a new version of neon that fixed a lot of build issues, although I'm still working out the kinks. Would you mind trying updating to neon-cli 0.1.12 and recreating the project and try again? |
I just tried the new version with a new project and got this error:
|
Argh! OK I'm getting familiar with that error (but oh my heavens do I need to improve the errors). This seems to happen when the Can you show me the output of |
which node: thanks for the quick response btw |
Does |
yep |
OK, so I'm gonna need some more info than the error is giving you -- would you be willing to let me dictate some local hacks to get the build scripts to spew more info? (Thank you so much for this help, btw -- you're helping me make this software actually, like, work. :P) |
yeah no problem ! |
OK awesome! So first, clone this repo (neon, not neon-cli) somewhere on your system, and then hack println!("==================");
println!("CONFIGURE:");
println!("{}", String::from_utf8_lossy(&output.stderr));
println!("=================="); Then inside |
|
sorry bad output ...
|
OK, so that's not where it's going wrong. Let's try the next node-gyp command: at the end of let output = node_gyp()
.args(&build_args)
.output()
.expect("Failed to run \"node-gyp build\" for neon-runtime!");
println!("--------------------");
println!("BUILD:");
println!("{}", String::from_utf8_lossy(&output.stderr));
println!("--------------------"); And then run |
|
We're getting warmer... What does |
|
How about |
|
A few more -- we're making progress :)
(There's something about your node installation setup that is tripping the build script up. It seems like it might have to do with how some symlinks are organized.) |
Actually since it looks like you have a standard homebrew installation of node, maybe I can just test that on my system. I'm using node via nvm instead of homebrew, so that's probably the root cause. |
|
let me know if it's work on your side with homebrew |
OK I think that tells me enough -- I'll try it on my system! Thanks again… |
OK it looks like homebrew installs node-gyp in yet another subdirectory. Now I know of different directory structures for Windows node, unix node, nvm node, and homebrew node. O_o This does not seem like a sustainable approach to finding and invoking node-gyp! In my head I keep flirting with the idea of just putting the node-gyp npm package as a local dependency. The main reason I was reluctant turns out to be wrong: I thought we'd have to install different versions of node-gyp depending on which version of node the client is using, but I see that node-gyp can be used across multiple node versions, so that's not an issue. So the only real concern then is just that it'll add another 5 or 6 seconds of build time for |
- Windows node - macOS node with nvm - macOS node with homebrew - macOS node with a vanilla install - Linux node In other words, all 5 of the 3 OSes node runs on. :P
Great, I will try it this weekend ! To me 5s more to build is not a issue. Good job :) |
Works fine on my system ! 👍 |
Hi, i just created a new neon project, but it doesn't seems to build ... Here's the log.
thanks
The text was updated successfully, but these errors were encountered: