gpt4 book ai didi

node.js - 错误 : functions predeploy error: Command terminated with non-zero exit code254

转载 作者:行者123 更新时间:2023-12-05 01:42:12 26 4
gpt4 key购买 nike

我正在使用 Mac。我试图从这个线程阅读并实现解决方案,但它不起作用。 Firebase deploy errors starting with non-zero exit code (space in project path)

我在将代码部署到 firebase 时遇到错误:

i deploying functions Running command: npm --prefix "%RESOURCE_DIR%" run lint npm ERR! path /Users/muchammadagunglaksana/Desktop/tsCobaDoangCloudFunction/%RESOURCE_DIR%/package.json npm ERR! code ENOENT npm ERR! errno -2 npm ERR! syscall open npm ERR! enoent ENOENT: no such file or directory, open '/Users/muchammadagunglaksana/Desktop/tsCobaDoangCloudFunction/%RESOURCE_DIR%/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

npm ERR! A complete log of this run can be found in: npm ERR!
/Users/muchammadagunglaksana/.npm/_logs/2018-09-07T09_10_49_146Z-debug.log

Error: functions predeploy error: Command terminated with non-zero exit code254 enter image description here

firebase.json中我尝试修改并使用:

"npm --prefix \"%RESOURCE_DIR%\" run lint"

enter image description here

但是我仍然收到如上图的错误信息,我该怎么办?

最佳答案

%RESOURCE_DIR% 是 Windows 语法。您应该像在 Mac 上一样使用 $RESOURCE_DIR

关于node.js - 错误 : functions predeploy error: Command terminated with non-zero exit code254,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52219322/

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