javascript-algorithms icon indicating copy to clipboard operation
javascript-algorithms copied to clipboard

issue while running program

Open Krish-bhardwaj opened this issue 3 years ago • 4 comments

Hi i dont know why but i am not able to run your program , i am new to js please help me

Error
> [email protected] test ......\javascript-algorithms
> jest "-t" "playground"

'jest' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Test failed.  See above for more details.

image

Krish-bhardwaj avatar Jan 22 '22 06:01 Krish-bhardwaj

have you installed jest already using npm install jest command? If yes, it is likely in your ./node_modules/.bin directory. try npm test -- --updateSnapshot this will add ./node_modules/.bin to path automatically.

abhinav1602 avatar Jan 22 '22 08:01 abhinav1602

image

why am i getting this error?

Krish-bhardwaj avatar Jan 22 '22 08:01 Krish-bhardwaj

Update npm by running npm -g i npm as root.

Your installed version of node is probably also seriously outdated. Run node -v && npm -v to show installed versions.

trasherdk avatar Jan 24 '22 01:01 trasherdk

Hi i dont know why but i am not able to run your program , i am new to js please help me

Error
> [email protected] test ......\javascript-algorithms
> jest "-t" "playground"

'jest' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! Test failed.  See above for more details.

image

Can you check if you have Jest installed properly in your system. You can try reinstalling it through npm.

saukumar95 avatar Jun 18 '22 11:06 saukumar95

Post moved to https://github.com/trekhleb/javascript-algorithms/issues/926 due to relevance

ccknaus avatar Aug 20 '22 20:08 ccknaus