kiliman / operator-mono-lig

Add ligatures to Operator Mono similar to Fira Code
MIT License
3.2k stars 202 forks source link

Not an issue: meant to help to use Win 10 Npm problems #176

Open keithwhyman opened 2 years ago

keithwhyman commented 2 years ago

So having spent the last couple of hours with this. This is just meant as a help. Installed node and python as requested, kept trying to ./build Errors Error: Cannot find module 'xpath' To solve install powershell in program files/nodesjs or where ever you installed npm install xpath If you try this in the operator-mono-lig-2.4.1 folder you get the following error PS C:\fontfun\operator-mono-lig-2.4.1> npm install xpath npm ERR! code 1 npm ERR! path C:\fontfun\operator-mono-lig-2.4.1\node_modules\canvas npm ERR! command failed

But after having installed xpath in your nodejs folder, in the operator-mono-lig-2.4.1 folder run the following in powershell npm install canvas

and then finally ./build works Hope this helps someone and saves them a couple of hours ....this can be closed (maybe noted in the install instructions)

xV0lk commented 2 years ago

Thanks @keithwhyman it really helped and solved the error.

kiliman commented 2 years ago

Interesting. Sorry about that. canvas shouldn't be a dependency. This should have been in my operator-mono-lig-source repository. I use it to generate the preview images of all the ligatures. As for xpath it should have installed properly using npm install. I'll fix this and make sure it works on a clean install.

https://github.com/kiliman/operator-mono-lig/blob/298723b87e1c6bb15fdd14224912c0d3183915fb/package.json#L18