I tried this twice with two different projects and am getting the same error. After I installed node.js and did npm install -g firebase-tools. I first cd to the project directory in the CLI. I then do a firebase init and it runs fine. When I do a firebase deploy, I get this same error each time. I am being told that a file is missing (package.json). I can see this file in the functions folder and in the main directory (entire_painting).
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>