Spark-cli install error
Closed this issue · 17 comments
Hi all,
I've been trying to download this package for quite a while, been looking everywhere for answers of problems of problems, trying to resolve this issue bit by bit, but I just couldn't get it to work in the end.
when I run :
npm install -g spark-cli
in the command prompt, I get :
I have also tried running:
node-gyp configure
node-gyp build
but both gave me errors.. Maybe thats part of the issue?
Any help would be greatly appreciated!
Are you on Mac OSx?
This looks like a problem with node-serialport on windows.
Definitely steering us to v1.5.0.
Initial test with Appveyor worked well. Haven't spun up windows boxs for 7 and 8.1 so hopefully something soon
Nope, I am on Windows 8.
If you are keen can you try this and let us know:
https://community.spark.io/t/spark-cli-on-windows8-1-x64/9997/5
Changed it to * and ran npm install -g spark-cli again, but got the same error :/
Maybe its the problem with my directories? Ive been moving them around everywhere trying to fix this myself..
Sorry I might have messed up the command. It should be npm install -g
in the js directory.
1.) Download the whole spark-cli again
2.) cd to the js folder
3.) Change serialport version to *
4.) npm install -g
@Voltezk, you don't look like you are in the js
directory?
Sorry! Im still kinda new to this :/
I navigated to js and ran the command and it installed it just fine.
Could you explain what that just did?
Sure i'm happy to explain further!
1.) Changing the node-serialport
version from 1.4.5 to * means "install the latest version" (1.5.0 in this case)
2.) cd to js directory is required as the package.json
file to be read by the installer (npm) is inside
3.) You just did a manual installation instead of the automated npm install -g spark-cli
which will pull the files from this repository. Reason being the version stated for node-serialport
right now is 1.4.5.
Can you verify that it installed properly with the command spark --version
?
Also, can you tell us the Windows version and 32bit or 64bit? That will help us a lot!
Thanks for the explanation!
Unfortunately it still seems to have issues... spark --version under the js directory gives 'spark' is not a recognized as an internal or external command...
Also my Windows is 64 bit :)
Need some help from the javascript people now!
1.) @emilyrose, i presume this didn't end up in the -g
since it's a locally installed directory?
Any way we can have a testing version of Spark-cli with node-serialport 1.5.0 for testing?
2.) @Voltezk, in the mean time, you can cd to bin
and use node spark.js xxxxxxx
where xxxxxx
are your commands. eg. node spark.js --version
Conversation and troubleshooting moved here: https://community.spark.io/t/spark-cli-not-installing-on-windows/10096
@emilyrose, this can be closed with #137 fix as well.
thanks!