GoogleCloudPlatform / functions-framework-nodejs

FaaS (Function as a service) framework for writing portable Node.js functions
Apache License 2.0
1.31k stars 160 forks source link

Missing package: @google-cloud/functions-framework #608

Open koistya opened 6 months ago

koistya commented 6 months ago

Deployment to GCF started to fail today with this error:

Error: Required package missing from disk. If you keep your packages inside your repository then restarting the Node process may be enough. Otherwise, try to run an install first.
Missing package: @google-cloud/functions-framework@npm:3.3.0
Expected package location: /www-data-home/.yarn/berry/cache/@google-cloud-functions-framework-npm-3.3.0-ac0c32fb0c-10c0.zip/node_modules/@google-cloud/functions-framework/

Package manager: Yarn v4 Runtime: nodejs20

JeongJuhyeon commented 5 months ago

Same here, along with 2 other users 1 2 so that makes 4 of us. Looks like there has been a breaking change that causes building with yarn PnP to fail.

zhuiks commented 4 months ago

I have the same error:

DEFAULT 2024-07-31T21:57:40.332062Z Error: Required package missing from disk. If you keep your packages inside your repository then restarting the Node process may be enough. Otherwise, try to run an install first.
DEFAULT 2024-07-31T21:57:40.332072Z Missing package: @google-cloud/functions-framework@npm:3.4.2
DEFAULT 2024-07-31T21:57:40.332078Z Expected package location: /www-data-home/.yarn/berry/cache/@google-cloud-functions-framework-npm-3.4.2-cb3d669f13-10c0.zip/node_modules/@google-cloud/functions-framework/

Kinda frustrating since docs are saying otherwise