gpt4 book ai didi

node.js - firebase deploy 没有找到与模式 "' src/**/*'"匹配的文件

转载 作者:行者123 更新时间:2023-12-03 12:16:27 24 4
gpt4 key购买 nike

我试图在 firebase 上部署我的第一个云函数,但问题是它总是说有问题并且没有文件与模式匹配我不知道为什么甚至 index.ts 是它应该在的地方
错误代码是

=== Deploying to 'mscmu-aeab1'...

i deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run lint

> functions@ lint C:\Users\fahmi\msc_mu\cloud_functions\functions
> eslint 'src/**/*'


Oops! Something went wrong! :(

ESLint: 7.9.0

No files matching the pattern "'src/**/*'" were found.
Please check for typing mistakes in the pattern.

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! functions@ lint: `eslint 'src/**/*'`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the functions@ lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\fahmi\AppData\Roaming\npm-cache\_logs\2020-09-26T22_01_33_578Z-debug.log

Error: functions predeploy error: Command terminated with non-zero exit code2


https://i.imgur.com/rb10Tsi.png

最佳答案

在您的函数中 package.json编辑 lint脚本如下:

eslint --ext .ts src

关于node.js - firebase deploy 没有找到与模式 "' src/**/*'"匹配的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64082945/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com