Can't deploy to firebase . Get ENOENT error

2019-09-06 11:59发布

问题:

Every time i run firebase deploy i get the following error

events.js:72
    throw er; // Unhandled 'error' event
          ^
Error: ENOENT, open '/home/joseph/tmp/11484-12736-1f3kttw.tar.gz'

Any ideas on what could be causing it?

回答1:

Apparently adding an empty tmp directory to the home folder fixed the issue. Running the command as root doesn't create the directory itself.



回答2:

The question has inadequate details but it seems that the file /home/joseph/tmp/11484-12736-1f3kttw.tar.gz either doesn't exists or it isn't accessible by your running application.



回答3:

sudo firebase deploy

That should do it!