在命令提示符中无法识别双点斜杠 - 运行 npm 命令

时间:2021-04-28 06:39:14

标签: node.js window

我的 lerna 项目 package.json 中有以下内容:

{
  "scripts": {
    "build": "../../node_modules/.bin/tsc"
  }
}

在 Windows bash.exe 上运行时,我得到

'..' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! my-package@1.0.0 build: `../../node_modules/.bin/tsc`

我试过:"build": "\"../../node_modules/.bin/tsc\"" 没有运气。我希望这个命令在 Windows 和 Mac 上都可以使用。我如何实现这一目标?

0 个答案:

没有答案
相关问题