hotswap_pcb_generator icon indicating copy to clipboard operation
hotswap_pcb_generator copied to clipboard

npm install doesn't properly install the kle-serial dependency

Open 50an6xy06r6n opened this issue 3 years ago • 6 comments

The first time you run npm install, it may not run the prepublish script inside of kle-serial. This only happens the first time, and even then doesn't always repro. I think this has something to do with the fact that it installs a fork of kle-serial directly from GitHub, and the fact that the prepublish script has been deprecated for a while. I think it might be fixable by converting kle-serial to use a prepare script, but I'm not sure because I can't repro consistently. If anyone has a good fix for this please let me know.

50an6xy06r6n avatar Jun 28 '21 04:06 50an6xy06r6n

Is there a workaround for this? Running npm install twice does not help. I tried with both node v16.4.0 and v14.0.0.

faster-harder-coder avatar Jun 29 '21 19:06 faster-harder-coder

@faster-harder-coder Did you run npm install inside the kle-serial directory (inside node_modules)? You can also try running npm run build in that directory, which should fix it for sure.

50an6xy06r6n avatar Jun 29 '21 20:06 50an6xy06r6n

On Ubuntu 20.04 doing npm install inside the kle-serial directory worked for me after doing npm install typescript. Just FYI in case it helps anyone.

asommer70 avatar Jul 18 '21 06:07 asommer70

Not sure if this if the right section to ask this but are there more detailed or "step by step, start to finish" instructions on how and where to install and run the script for the KLE to SCAD conversion on a windows PC? I'm new to this.

djwink1 avatar Aug 30 '22 12:08 djwink1

Not sure if this if the right section to ask this but are there more detailed or "step by step, start to finish" instructions on how and where to install and run the script for the KLE to SCAD conversion on a windows PC? I'm new to this.

Hi, djwink1, in my case,

run cmd:

f: cd F:\GitHub\hotswap_pcb_generator\script 2022-08-30_081229

npm install 2022-08-30_081504

cd node_modules@ijprest\kle-serial npm install 2022-08-30_083510

cd ......
2022-08-30_081854

put KLE .json file to this folder: 2022-08-30_083658

and you can read the readme file to continue: Usage

AndyChiu avatar Aug 30 '22 13:08 AndyChiu

Awesome, thanx!!

djwink1 avatar Sep 12 '22 17:09 djwink1