mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-12-25 22:46:20 +08:00
Add troubleshooting instructions.
This commit is contained in:
parent
4ca41ea83b
commit
912941be1d
12
README.md
12
README.md
@ -236,6 +236,7 @@ tree is being used.
|
||||
## How to use this repository
|
||||
|
||||
**Install all dependencies**
|
||||
|
||||
```
|
||||
npm install
|
||||
```
|
||||
@ -249,15 +250,26 @@ npm run lint
|
||||
```
|
||||
|
||||
**Run all tests**
|
||||
|
||||
```
|
||||
npm test
|
||||
```
|
||||
|
||||
**Run tests by name**
|
||||
|
||||
```
|
||||
npm test -- 'LinkedList'
|
||||
```
|
||||
|
||||
**Troubleshooting**
|
||||
|
||||
In case if linting or testing is failing try to delete the `node_modules` folder and re-install npm packages:
|
||||
|
||||
```
|
||||
rm -rf ./node_modules
|
||||
npm i
|
||||
```
|
||||
|
||||
**Playground**
|
||||
|
||||
You may play with data-structures and algorithms in `./src/playground/playground.js` file and write
|
||||
|
Loading…
Reference in New Issue
Block a user