sanack / node-jq

Node.js wrapper for jq

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cannot open `node_modules/node-jq/bin/jq` for reading: permission denied

PhaedrusTheGreek opened this issue · comments

I'm unable to deploy a google cloud function that relies on node-jq

For Cloud Build Stackdriver Logs, visit: https://console.cloud.google.com/logs/viewer?project=xxx.xxx.cloudbuild
............................failed.
ERROR: (gcloud.functions.deploy) OperationError: code=13, message=Build failed: cp: cannot open 'node_modules/node-jq/bin/jq' for reading: Permission denied; Error ID: be8da553
[gcloud] exited with code 1

I'm assuming there is some cloud environment security that prevents execution of a local binary.

Related - #374

It was fixed in 7935a4e but Travis decided to not run. I will migrate to Github Actions so this won't happen.

I'm releasing manually a 2.0.2 version.

Closed related #439