-
Notifications
You must be signed in to change notification settings - Fork 14
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
Build Failure on Install #28
Comments
Worth also mentioning that the README is a few versions behind on the latest NetCDF release, so I just had to bump my environment variable. However, the issue is still occurring. |
Update, build is finally getting past not being able to find 'netcdf.h' after a nice restart of VS Code, but a new issue is occurring. Some logs below. `
D:\Weather\madis-injestor\node_modules\netcdf4>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: D:\Weather\madis-injestor>set NETCDF_DIR=C:\Program Files\netCDF 4.7.4 D:\Weather\madis-injestor>npm i netcdf4
D:\Weather\madis-injestor\node_modules\netcdf4>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
I think I'm having the same issues and I have a possible explanation and two workarounds. It seems like the current state of the repository is not published to NPM. I was able to get it to work if I used node v10 and From #25 it looks like this repository is undergoing maintainer changes so maybe it's just taking some time to get the latest out to NPM. In the mean time hopefully this helps. |
I saw that too but didn't think too much of it as it was at least two months ago. I'll try this in a little bit. Thank you! I am on Node.JS 12.13.1 so I can see I'm a little bit far off on the version this is supporting then. I know they have a pull request open where they're converting to NAPI for builds, so hoping that'll fix it. Thanks again and appreciate it. |
Hey, that worked @PhilipNelson5 [manually downloading the repo]. Thanks again 👍 |
Glad it worked. It seems the community using this package is pretty small and there are no alternatives I could find. Hopefully things get straightened out soon and we can go back to pulling from npm! |
I await to see what the new maintainer will do, worst come to worst someone else can fork and start to maintain it. I'm starting to use this for a service parsing NWS products. |
@PhilipNelson5 @mwalden2004 I'm having issues installing this too. Using windows, which I'm not particularly accustomed to, and have a feeling that might be part of it. I'm getting the following error when trying to run some python code during the setup process:
I could dig into this error directly, but it seems like that might not be the right path since you both seem to have gotten it working recently. Any help is appreciated! |
@the-alli-cat I don't have a clue what's going on with that, however, it looks like this has something to do with your build tools, python version, or paths. I'm not to sure of which. Edit: after looking at StackOverflow: https://stackoverflow.com/questions/54059433/after-npm-install-an-error-about-a-syntax-error-in-python-appears |
@mwalden2004 I probably should have done my own due diligence before posting here. 🤦♀️🤦♀️ Anyway, thanks for the link, I appreciate it! I'll give it a shot tomorrow at some point and post back for the sake of posterity. |
@the-alli-cat You're fine 👍 You're welcome. Let me know how it goes. |
Hello, I was trying to install the node package this morning, however, on install, the build fails due to being unable to include 'netcdf.h' I have NetCDF installed, so I don't know why it's having a hard time.
The text was updated successfully, but these errors were encountered: