npm run make-components is breaking

82 views
Skip to first unread message

Sandeep Jain

unread,
Oct 18, 2022, 9:12:04 AM10/18/22
to MathJax Users
Hi,

I'm trying to execute 'npm run make-components' on Windows 10.

I have successfully run 'npm install' and 'npm run compile'.

I'm seeing the following output on 'npm run make-components':

C:\Apache24\htdocs\mathjax>npm run make-components

> mathja...@3.2.2 premake-components
> npm run --silent clean:es5 && npm run --silent clean:lib


> mathja...@3.2.2 make-components
> cd components && node bin/makeAll src | grep --line-buffered 'Building\|Webpacking\|Copying\|npx'

'Webpacking\' is not recognized as an internal or external command,
operable program or batch file.

I don't see anything called 'Webpacking' on the web.
Thanks

Davide Cervone

unread,
Oct 27, 2022, 5:31:18 PM10/27/22
to mathja...@googlegroups.com
This is coming from the 


grep --line-buffered 'Building\|Webpacking\|Copying\|npx'

that is being performed.  This is a unix command for searching for patterns in a file, and the output of the bin/makeAll script is being piped into that search to limit the output that is actually shown.  That doesn't work in windows shell.

You could simply do

cd components
node bin/makeAll src

by hand to avoid the grep command.  That should do the trick (but with more output).  Alternatively, you could use the Windows Subsystem for Linux to run a unix environment under Windows.  I've not done this myself, but I hear that it is pretty effective.

I'll have to look into replacing the grep command with something that is windows compatible.

Davide


--
You received this message because you are subscribed to the Google Groups "MathJax Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mathjax-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mathjax-users/669fb6a9-0540-485e-b6ec-549634761724n%40googlegroups.com.

Sandeep Jain

unread,
Nov 1, 2022, 5:02:26 AM11/1/22
to MathJax Users
I tried running the Windows Subsystem for Linux, but was completely unable to install Node on this. So then I created a dual boot of Linux on my Windows laptop and now Mathjax is building and running fine on my system. Linux is clearly the way to go.

I do have to point out that apart from the grep (which I removed) the build ( npm run make-components ) was breaking all over the place on Windows 10. If you give an indication, I can list out the places where it broke, the fixes that I found, and where I finally got stuck. Also, I can move that discussion to the Dev group if you like.

Sandeep

Davide Cervone

unread,
Nov 19, 2022, 7:05:42 PM11/19/22
to mathja...@googlegroups.com
Sandeep:

Sorry for the delay in getting back to you.  My fall teaching schedule is pretty hectic!

I'm glad you got MathJax working for you on linux.  Yes, I'd be interested it what didn't work for you in Windows, and I no longer have access to Windows 10.  I haven't tried to build MathJax there, so your experience would be valuable.  The dev group is probably a better location for that, or an issue tracker on the MathJax-src repository would also work. 

Davide


Sandeep Jain

unread,
Dec 5, 2022, 9:05:28 AM12/5/22
to MathJax Users
Davide,

I'm sorry, but I can hardly even access Windows on my laptop any longer. Last time I tried, I couldn't even start Windows 10, so I'm just using Linux. Linux is a wonderful system. I'm grateful to you for having introduced me to it.

Sandeep

Davide Cervone

unread,
Dec 5, 2022, 9:11:07 AM12/5/22
to mathja...@googlegroups.com
Yes, linux is an excellent operating system; glad you are finding it works well for your needs.

Good luck with your project.

Davide


Reply all
Reply to author
Forward
0 new messages