0

我用两个不同的项目尝试了两次,并且得到了同样的错误。在我安装node.js并执行npm install -g firebase-tools之后。我首先 cd 到 CLI 中的项目目录。然后我做了一个firebase init,它运行良好。当我进行firebase deploy时,每次都会遇到同样的错误。我被告知缺少一个文件(package.json)。我可以在函数文件夹和主目录(整个绘画)中看到这个文件。

Hosting URL: https://entire-painting-ei.firebaseapp.com

c:\xampp\htdocs\Entire_Painting>firebase deploy --only functions

=== Deploying to 'entire-painting-ei'...

i  deploying functions

Running command: npm --prefix $RESOURCE_DIR run lint

npm ERR! path c:\xampp\htdocs\Entire_Painting\$RESOURCE_DIR\package.json

npm ERR! code ENOENT

npm ERR! errno -4058

npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open 'c:\xampp\htdocs\Entire_
Painting\$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!     C:\Users\JJ\AppData\Roaming\npm-cache\_logs\2018-03-01T01_39_39_
398Z-debug.log

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

c:\xampp\htdocs\Entire_Painting>
4

0 回答 0