-
Hi, I'm trying hours to install the current version (9.2.8) on a new NODE project on Windows 10. I didn't have previously any problem with version 9.0.2 (at the time that was the default release version). Previously I didn't have any issue with just adding the reference in Visual Studio. However, when I started a new project now, Visual Studio simply refused to add the reference. When I searched the roots I started experimenting with the command line to get more related info and error messages. I've ended up after installing Python with error message of the Python itself about Syntax Error:
prebuild-install WARN install No prebuilt binaries found (target=10.13.0 runtime=node arch=x64 libc= platform=win32) C:\Users\Tomas\Source\Repos.2019\t-work-tec\Toors\Toors\node_modules@serialport\bindings>if not defined npm_config_node_gyp (node "C:\Program Files (x86)\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 (x86)\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) It seems like a bug somewhere in the installing scripts (I'm not familiar with Python). Does somebody know what could cause this or some workaround? Thank you Tomas |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Can you try with the latest beta? npm install serialport@beta The docs can be found at -Francis |
Beta Was this translation helpful? Give feedback.
-
Hi Thank you for the swift response. The beta installs ok. However, I have troubles with backward compatibility. Also creating the serial port instance doesn't work in this beta: As it seems from debugging that the class itself is in SerialPort.SerialPort, I tried to use this instead. SerialPort.SerialPort.list() works fine. However, the backward compatibility again: I studied the source code of the module and found that the constructor call has different parameters than in the version 9.0.2. So the documentation doesn't reflect the new code. That causes the exception mentioned above. Maybe there should be some parameter checking when this is changed this way in relation with the previous version. I understand that the documentation is maybe inaccurate for beta. I'm just letting you know about my findings. I can cope with the rest. Is there any option to install the version 9.0.2 or something close to that? I tried "npm install [email protected]" and this started to install (with failure) the current version anyway. Thank you for your help. Tomas |
Beta Was this translation helpful? Give feedback.
-
Thank you for letting me know. Such guide is really beneficial. Is there any way how to install some of older versions? It seems that for instance "npm install serialport@version" doesn't work. Thank you. |
Beta Was this translation helpful? Give feedback.
Can you try with the latest beta?
npm install serialport@beta
The docs can be found at
https://serialport.io/docs/next/
-Francis