mirror of
https://github.moeyy.xyz/https://github.com/trekhleb/javascript-algorithms.git
synced 2024-12-26 07:01:18 +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
|
## How to use this repository
|
||||||
|
|
||||||
**Install all dependencies**
|
**Install all dependencies**
|
||||||
|
|
||||||
```
|
```
|
||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
@ -249,15 +250,26 @@ npm run lint
|
|||||||
```
|
```
|
||||||
|
|
||||||
**Run all tests**
|
**Run all tests**
|
||||||
|
|
||||||
```
|
```
|
||||||
npm test
|
npm test
|
||||||
```
|
```
|
||||||
|
|
||||||
**Run tests by name**
|
**Run tests by name**
|
||||||
|
|
||||||
```
|
```
|
||||||
npm test -- 'LinkedList'
|
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**
|
**Playground**
|
||||||
|
|
||||||
You may play with data-structures and algorithms in `./src/playground/playground.js` file and write
|
You may play with data-structures and algorithms in `./src/playground/playground.js` file and write
|
||||||
|
Loading…
Reference in New Issue
Block a user