Skip to content

Commit 0c73745

Browse files
committed
Update README install instructions
1 parent b3e7583 commit 0c73745

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,13 @@ Repository](https://github.com/mathjax/MathJax-demos-web) for more information.
6666

6767
### Using MathJax Components in node applications
6868

69-
To use MathJax components in a node application, install the `mathjax`
70-
package:
69+
To use MathJax components in a node application, install the `mathjax` package:
7170

72-
npm install mathjax
71+
npm install mathjax@3
7372

74-
and require `mathjax` within your application:
73+
(we are still making updates to version 2, so you should include `@3` since the latest chronological version may not be version 3).
74+
75+
Then require `mathjax` within your application:
7576

7677
require('mathjax').init({ ... }).then((MathJax) => { ... });
7778

@@ -121,8 +122,8 @@ If you want to work from the GitHub repository directly, then do the following:
121122

122123
git clone https://github.com/mathjax/MathJax-src.git mathjax-src
123124
cd mathjax-src
124-
npm run compile
125-
npm run make-components
125+
npm run --silent compile
126+
npm run --silent make-components
126127

127128
in order to compile the JavaScript files from the TypeScript source,
128129
and build the component files from the JavaScript files.

0 commit comments

Comments
 (0)