Error on firebase deploy

415 views
Skip to first unread message

Tim7

unread,
Jun 11, 2018, 3:13:01 PM6/11/18
to Firebase Google Group
Seeing following error on firebase deploy; had been working without issue last week.

TypeError: "file" argument must be a non-empty string

Details


[info] === Deploying to 'neneclub-6c3ae'...
[info]
[info] i deploying database, functions, hosting
[info] i functions: running predeploy script.
[debug] [2018-06-11T18:27:56.375Z] TypeError: "file" argument must be a non-empty string
at normalizeSpawnArguments (child_process.js:380:11)
at Object.exports.spawn (child_process.js:493:38)
at /home/tim/.npm-global/lib/node_modules/firebase-tools/lib/deploy/lifecycleHooks.js:21:27
at initializePromise (/home/tim/.npm-global/lib/node_modules/firebase-tools/node_modules/rsvp/dist/rsvp.js:567:5)
at new Promise (/home/tim/.npm-global/lib/node_modules/firebase-tools/node_modules/rsvp/dist/rsvp.js:1039:33)
at /home/tim/.npm-global/lib/node_modules/firebase-tools/lib/deploy/lifecycleHooks.js:20:12
at _chain (/home/tim/.npm-global/lib/node_modules/firebase-tools/lib/deploy/index.js:23:45)
at /home/tim/.npm-global/lib/node_modules/firebase-tools/lib/deploy/index.js:26:14
at tryCatch (/home/tim/.npm-global/lib/node_modules/firebase-tools/node_modules/rsvp/dist/rsvp.js:525:12)
at invokeCallback (/home/tim/.npm-global/lib/node_modules/firebase-tools/node_modules/rsvp/dist/rsvp.js:538:13)
[error]
[error] Error: An unexpected error has occurred.

Tim7

unread,
Jun 12, 2018, 12:39:34 PM6/12/18
to Firebase Google Group
In case others encounter this error, I have found that:
  • this error occurs when I run "firebase deploy" from the Integrated Terminal in Visual Studio Code
  • error does NOT occur when I run "firebase deploy" from a Terminal Window
This on Ubuntu 16.04. 

Doug Stevenson

unread,
Jun 12, 2018, 6:04:35 PM6/12/18
to Firebase Google Group
Tim, could you also file a bug report with all the relevant details?

Doug

Simon Hales

unread,
Oct 12, 2018, 10:18:54 AM10/12/18
to Firebase Google Group
Just want to note, I was having this issue as well. I resolved it by installing the latest version of firebase-tools globally. I.e. I ran

npm install --global firebase-tools@latest



After that I was able to deploy.
Reply all
Reply to author
Forward
0 new messages