尝试运行nodejs命令行,但出现意外错误

时间:2019-11-17 18:34:49

标签: node.js

我尝试在nodejs中运行命令: $ sed -nr 's#^0 (.*)#training/\1#p' CSDMC2010_SPAM/CSDMC2010_SPAM/SPAMTrain.label | xargs node spamfilter.js -s

但是出现错误: The term 'sed' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and
try again. At line:1 char:1 + sed -nr 's#^0 (.*)#training/\1#p' CSDMC2010_SPAM/CSDMC2010_SPAM/SPAMT ... + ~~~ + CategoryInfo : ObjectNotFound: (sed:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException

尝试多种方法进行修复,但没有用,有谁可以帮助您?非常感谢

0 个答案:

没有答案