【发布时间】:2016-01-19 10:34:42
【问题描述】:
我正在尝试在我的package.json 中运行lessc PowerShell 命令行。
所以在我的脚本部分我有类似的东西:
Get-ChildItem *.less -Recurse | ForEach-Object {lessc $_.FullName > $_.BaseName.css}
但它给了我以下错误:
'Get-ChildItem' 未被识别为内部或外部命令
虽然这在 PowerShell 中正常执行
Get-ChildItem *.less -Recurse | ForEach-Object {echo $_.Name}
一个普通的lessc 命令也可以按预期工作。
有什么想法吗?
Also check this question that have another solution for this.
【问题讨论】:
标签: css node.js powershell less