add the line [“watch”: true] into tsconfig.json
- execute [ > npm run build ]
- execute firebase serve (for local development)
You have to execute the command [npm run build] under the “/functions” directory. not the root directory. because the tsconfig.json and package.json file are under the folder.
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/.../package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/.../package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoentnpm ERR! A complete log of this run can be found in:
npm ERR! /Users/.../.npm/_logs/...-debug.log