首页 > 解决方案 > '。' 不被识别为内部或外部命令、可运行程序或批处理文件。- 在 package.json 中运行启动脚本时

问题描述

我的 package.json 中有这个:

  "scripts": {
    "start": "./node_modules/.bin/netlify-lambda serve src",
    "build": "./node_modules/.bin/netlify-lambda build src"
  },

当我运行npm run start它显示:

> ./node_modules/.bin/netlify-lambda serve src

'.' is not recognized as an internal or external command,
operable program or batch file.
The terminal process "C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -Command npm run start" terminated with exit code: 1.

标签: npmpackage.json

解决方案


推荐阅读