我正在尝试发布一个电容器插件。根据错误它无法识别rm。我正在使用 Window 的 Powershell(VC 代码)当 npm publish in run 时,在 powershell 中生成以下错误
PS C:\Users\xxxxx\Documents\demo-plugin> npm run build
demo-plugin@0.0.1 build C:\Users\xxxxx\Documents\demo-plugin
npm run clean && tsc
demo-plugin@0.0.1 clean C:\Users\xxxxxx\Documents\demo-plugin
rm -rf ./dist
'rm' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! demo-plugin@0.0.1 clean: `rm -rf ./dist`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the demo-plugin@0.0.1 clean script.
npm ERR! …Run Code Online (Sandbox Code Playgroud)