-
Notifications
You must be signed in to change notification settings - Fork 337
Unable to to use Wrangler in CI (BitBucket Pipeline) #529
Comments
Hey @Matthew1534 - we recommend installing node/npm with a version manager like nvm. Could you try uninstalling node/npm and reinstalling with nvm and then installing wrangler afterwards? Please update if that works! Thanks for the report |
Hey @EverlastingBugstopper - thanks for the above super quick reply. I've now managed to get this working using a
We get a Thanks :) |
You can likely get around this by not running these commands as root. Hope this helps :) |
thanks! |
The best way I found to install Wrangler via Bitbucket Pipelines was to set the npm user to root:
Source: https://stackoverflow.com/a/54290720/8742362 Full
|
Is it possible to install Wrangler in a CI/CD environment, spcifically BitBucket Pipelines in our case?
If we do
npm i @cloudflare/wrangler -g
the installation fails withError: EACCES: permission denied, mkdir '/root/.wrangler'
:If we do
npm i @cloudflare/wrangler
it installs (installation logs below) but when you try to then runwrangler publish --release
we receivebash: wrangler: command not found
:The above is using a Node 12.6.0 container image, I've also tried a Node 8-jessie image too and changing the user the container is running as to no avail.
Thanks very much!
The text was updated successfully, but these errors were encountered: