npm - '。' 不被识别为内部或外部命令、可运行程序或批处理文件。- 在 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.
解决方案
推荐阅读
- extjs - 关于错误 EXTJS-27596
- reactjs - 在客户端存储上重命名/复制文件的解决方案的建议
- nginx - Nginx反向代理服务器相同页面
- angular - Nx & Storybook:无法读取未定义的属性“registerOptionsTransform”
- streamlit - 我正在尝试使用来自 fbprophet 的 Prophet,但我收到了这个非常长的错误消息,不知道是什么意思?
- gstreamer - 原始 h264 数据到 RTSP
- xslt - XSLT 模板 - 文本输出文件使用 in
- sql-server - SQL Server 是否在查询计划中考虑哪个索引已经在内存中(缓存)?
- asp.net - 如何在服务参考 asp.net 中使用 WADL XML
- azure-data-factory - 在数据工厂中循环一系列数字