https://discord.cloudflare.com logo
Join Discord
Powered by
# r2
  • v

    Vitali

    04/22/2022, 5:33 PM
    try just using
    npx wrangler
    directly
  • v

    Vitali

    04/22/2022, 5:33 PM
    no need to install wrangler1
  • s

    stupefied | AS204829

    04/22/2022, 5:34 PM
    Copy code
    ishmeet@server:~$ npx wrangler
    npx: installed 1 in 2.122s
    command not found: wrangler
  • w

    Walshy | Pages

    04/22/2022, 5:34 PM
    npx wrangler@beta r2 bucket create test
  • s

    stupefied | AS204829

    04/22/2022, 5:36 PM
    Copy code
    ishmeet@server:~$ sudo npx wrangler@beta r2 bucket create test
    internal/modules/cjs/loader.js:638
        throw err;
        ^
    
    Error: Cannot find module '/root/.npm/_npx/462749/lib/node_modules/wrangler/node_modules/esbuild/install.js'
        at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
        at Function.Module._load (internal/modules/cjs/loader.js:562:25)
        at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
        at startup (internal/bootstrap/node.js:283:19)
        at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! esbuild@0.14.34 postinstall: `node install.js`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the esbuild@0.14.34 postinstall script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /root/.npm/_logs/2022-04-22T17_36_07_969Z-debug.log
    Install for wrangler@beta failed with code 1
  • s

    stupefied | AS204829

    04/22/2022, 5:36 PM
    got ELIFECYCLE again
  • k

    kavinplays

    04/22/2022, 5:36 PM
    try
    @alpha
  • k

    kavinplays

    04/22/2022, 5:36 PM
    (that's what i did and worked)
  • s

    stupefied | AS204829

    04/22/2022, 5:37 PM
    im just getting the same error
  • k

    kavinplays

    04/22/2022, 5:38 PM
    are you on linux?
  • s

    stupefied | AS204829

    04/22/2022, 5:38 PM
    i remember having the same error code with another instance where i had to use npm and wasn't able to solve it lol
  • s

    stupefied | AS204829

    04/22/2022, 5:38 PM
    yeah
  • k

    kavinplays

    04/22/2022, 5:38 PM
    or windows or mac?
  • s

    stupefied | AS204829

    04/22/2022, 5:39 PM
    ubuntu to be specific
  • k

    kavinplays

    04/22/2022, 5:39 PM
    weird, worked for me on ubuntu
  • k

    kavinplays

    04/22/2022, 5:39 PM
    (if you were on windows i would try that on windows)
  • s

    stupefied | AS204829

    04/22/2022, 5:39 PM
    im using a chromebook right now actually
  • s

    stupefied | AS204829

    04/22/2022, 5:39 PM
    ssh'd into my server
  • k

    kavinplays

    04/22/2022, 5:40 PM
    lemme try on a vps
  • j

    john.spurlock

    04/22/2022, 5:44 PM
    cf-ray on an s3 endpoint response indicates the colo of the bucket storage? or just the frontend worker
  • a

    albert

    04/22/2022, 5:49 PM
    I can say with almost certainty it indicates the entry colo. That's how ray IDs have always worked, so I'd be surprised if it didn't.
  • i

    Isaac McFadyen | YYZ01

    04/22/2022, 5:57 PM
    Try no sudo
  • i

    Isaac McFadyen | YYZ01

    04/22/2022, 5:57 PM
    Root messes things up sometimes.
  • c

    Chaika

    04/22/2022, 6:00 PM
    Without the dashboard, there's no easy way to create an r2 bucket, fill it with static assets, and just serve it, right? We'd need to make some worker to handle the uploading first and then modify it. Was just wondering if there was a CLI command or existing tool
  • j

    john.spurlock

    04/22/2022, 6:01 PM
    also no public read yet, so you won't be able to serve from the s3 endpoint directly at the moment
  • d

    Deleted User

    04/22/2022, 6:01 PM
    Just set this up and noticed a little bug where it doesn't 404 and throws an error when you send an invalid filename https://s.svgems.xyz/o3o95wl
  • w

    Walshy | Pages

    04/22/2022, 6:02 PM
    bad code @James
  • d

    Deleted User

    04/22/2022, 6:03 PM
    Repeatable through our domains but not cherrys so I dunno if we did something wrong
  • k

    kian

    04/22/2022, 6:03 PM
    bad code @James
  • c

    Chaika

    04/22/2022, 6:03 PM
    lol it looks like he is checking if the file is null, but maybe it's just undefined?
1...464748...1050Latest