📜  rm 未被识别为内部命令 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:06.960000             🧑  作者: Mango

代码示例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"