【发布时间】:2018-04-06 19:14:56
【问题描述】:
我有以下脚本:
"clear": "rimraf lib",
"build": "npm run clear && ./node_modules/.bin/babel --out-dir lib src",
...
当我运行 npm run clear 时效果很好!
如果我运行 ./node_modules/.bin/babel --out-dir lib src,它会按预期运行。
如果我运行npm run clear && ./node_modules/.bin/babel --out-dir lib src,它也可以正常工作。
但是如果我运行 npm run build 我会收到以下错误:
'.' is not recognized as an internal or external command, operable program or batch file
我使用的是 Windows 10。
npm 5.6.0
节点 7.0.0
【问题讨论】:
标签: npm npm-scripts