I did firebase deploy --only functions:helloWorld using the Firebase CLI to deploy my function.
This is what I see on the terminal:
Build failed: npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! /builder/home/.npm/_logs/2020-09-03T11_53_55_738Z-debug.log; Error ID: 49341d49
And on the GCP logs:
Cloud Functions
UpdateFunction
us-central1:helloWorld
me@gmail.com
Build failed: npm ERR! Maximum call stack size exceeded npm ERR! A complete log of this run can be found in: npm ERR! /builder/home/.npm/_logs/2020-09-03T10_51_08_513Z-debug.log; Error ID: 49341d49
The question is, where can I find this file /builder/home/.npm/_logs/2020-09-03T10_51_08_513Z-debug.log to inspect its contents?
I opened GCP's cloud shell but there's no such folder as /builder when I ls from root
EDIT:
While running npm cache clear I saw these logs and thought that there might be something under /Users/me/home/.npm/_logs:
npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead. On the other hand, if you're debugging an issue with the installer, you can use `npm install --cache /tmp/empty-cache` to use a temporary cache instead of nuking the actual one.
npm ERR!
npm ERR! If you're sure you want to delete the entire cache, rerun this command with --force.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/me/.npm/_logs/2020-09-03T16_43_51_810Z-debug.log
so I went ahead and did ls -als ~/.npm/_logs/ and I see some older logs on there but nothing matching 2020-09-03T10_51_08_513Z-debug.log or newer ones that would have been generated by more recent firebase deploy commands
