Skip to content

Commit ef0fa39

Browse files
authored
Merge pull request #729 from minhsueh/readme_improvement
add node version requirement to README
2 parents 73f1a1b + 96a261b commit ef0fa39

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,26 @@ Clone the mp-react-components repo:
2020
git clone [email protected]:materialsproject/mp-react-components.git
2121
```
2222

23+
Ensure you're using Node.js version 12.x for compatibility.
24+
If you don't have nvm (Node Version Manager) installed, you can install it using the following command:
25+
26+
```
27+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
28+
```
29+
30+
Install and use Node.js version 12.x.
31+
32+
```
33+
nvm install 12
34+
nvm use 12
35+
```
36+
37+
To check Node.js version
38+
39+
```
40+
node -v
41+
```
42+
2343
From inside the top directory, install the dependencies:
2444

2545
```

0 commit comments

Comments
 (0)