I'm building an Angular + Firebase web app and due to some complex queries I started looking for Cloud Functions from firebase.
My project looks like:
MyProject
|__ node_modules
|__ src (with app and my complete project)
|__ some files like tsconfig.json
So I add a repertory "functions" and I followed the classic tutorial: https://firebase.google.com/docs/functions/get-started
MyProject
|__ node_modules
|__ src (with app and my complete project)
|__ some files like tsconfig.json
|__ functions
|__ node_modules
|__ src
But problem when using firebase deploy --only functions
i deploying functions
Running command: npm --prefix "$RESOURCE_DIR" run lint
npm ERR! path E:\Work\MyProject\%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 'E:\Work\MyProject\%RESOURCE_DIR%\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
It creates a "%RESOURC_DIR%" folder but there is package.json inside.
Any idea ? Did I do something wrong ?
Versions: "firebase": "^5.0.4" "firebase-functions": "^2.0.5"