小编P S*_*nha的帖子

尝试发布电容器插件时,“rm”未被识别为内部或外部命令

我正在尝试发布一个电容器插件。根据错误它无法识别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)

powershell npm ionic-framework capacitor

5
推荐指数
1
解决办法
6378
查看次数

标签 统计

capacitor ×1

ionic-framework ×1

npm ×1

powershell ×1