Skip to content
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

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

Open
keithwhyman opened this issue Nov 29, 2021 · 2 comments
Open

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

keithwhyman opened this issue Nov 29, 2021 · 2 comments

Comments

@keithwhyman
Copy link

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
Copy link

xV0lk commented Dec 28, 2021

Thanks @keithwhyman it really helped and solved the error.

@kiliman
Copy link
Owner

kiliman commented Dec 28, 2021

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.

"xpath": "0.0.24"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants