-
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
Can't install from windows #10
Comments
Is there a common Windows environment with SPI available you need this for? (This library is primarily targeted for Raspberry Pi and other Linux environments like Beagle Bone.) |
I would like to fix this though, BTW so it at least compiles a [non-working] library for random dependency situations that come up with e.g. Tessel. Just curious what your use case is. |
…472089/179583. hopefully fixes #10 but wil need to test later
The installation error should now be fixed. There is still a weird warning, and you just get an error if you try to actually use it (see stub test for example). For future reference (I have no plans at this point) I did come across this documentation: And I also signed up for https://dev.windows.com/en-us/featured/raspberrypi2support / https://www.windowsondevices.com/signup.aspx in case there's interesting API that is getting added. |
I'm still having trouble installing this on Windows.
See logs below. Are there any temporary work arounds? I have a package that depends on pi-spi. I'm installing on a normal Windows machine instead of the Windows IoT and have run-time checks to not use the pi-spi library if it's running on windows instead of linux, but since the npm install fails it makes things difficult since it will complain the module doesn't exist.
|
@mattmazzola Hmm, sorry to hear this is giving you trouble. Are other native modules building fine with your node install? The intent is that this library will build on Windows, but not really work at runtime if you try to use it. (See #18 for future potential there…) Looks like you also might be using nvm? Does |
Hmm... I tried installing it on an emtpy folder and got a slightly different error message this time which looks more helpful. It appears it's specifically building/targeting Windows 8.1 and I don't have the Windows 8.1 SDK installed so it can't build. Perhaps there is a way to make it know that I'm on Windows 10 and adjust or something I can easily install that would allow it to work. Error message below:
|
@mattmazzola Looks like I really dropped the ball on this :-/ If this is something you still need help with or that I should look into, could you please file a new issue with details. Otherwise it looks like this thread is already closed so I'll just leave it unless it needs more attention. |
Yea, I'm not working on the project that need the library anymore so yea go ahead and close. I saw this change for Node 8 which might be related:
Although, I don't think that is for Windows 10. From my understanding this build process is doing OS detection and then making assumptions about where to find a version of msbuild which should be there based on SDK which installed with operating system. Since it was written before Window 10 they don't have it updated to detect Windows 10 and look at the new location. I'm hoping the WSL (Windows Subsystem for Linux) pulls through and allows it to work natively. |
I try install package with npm install from windows, but have a error: "\spi_binding.cc(66): fatal error C1021: invalid preprocessor command 'warning' [c:\UserData\git\Azure\node_modules\pi-spi\build\spi_binding.vcxproj]".
Part of log file:
error [email protected] install:
node-gyp rebuild
84 error Exit status 1
85 error Failed at the [email protected] install script.
85 error This is most likely a problem with the pi-spi package,
85 error not with npm itself.
85 error Tell the author that this fails on your system:
85 error node-gyp rebuild
85 error You can get their info via:
85 error npm owner ls pi-spi
85 error There is likely additional logging output above.
86 error System Windows_NT 6.2.9200
87 error command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "pi-spi"
88 error cwd c:\UserData\git\Azure\spi
89 error node -v v0.10.26
90 error npm -v 1.4.3
91 error code ELIFECYCLE
The text was updated successfully, but these errors were encountered: