Error: rm is not recognized as internal command

In this article let’s discuss about Error: rm is not recognized as internal command. Let’s go through the following methods without any delay.

Method 1:

rm is only meant to be used in UNIX systems. If you see that issue on Windows,
then you either need to run your command through Git Bash 
or just install the following npm library:

************************************
npm install --save-dev rimraf mkdirp
************************************

Make sure you then replace the UNIX parts like the examples bellow:

before:
"build": "rm -rf ./build && mkdir ./build && babel -d ./build ./src"

after:
"build": "rimraf ./build && mkdirp ./build && babel -d ./build ./src"

Hope the above solution works.

Realted Posts : How to install sfml on ubuntu?