GithubHelp home page GithubHelp logo

Comments (7)

g8up avatar g8up commented on July 29, 2024 1

thx for reminding!
I have installed by this way:

npm i git+https://github.com/mikeal/r2.git

from r2.

gr2m avatar gr2m commented on July 29, 2024 1

all fixed now :)

from r2.

stripedpajamas avatar stripedpajamas commented on July 29, 2024

I'm not sure that this has to do with r2, maybe you can provide some more context.

This worked fine for me, natively with node 8 and also babeled:

const r2 = require('./');

const comms = {
        requestData: async function(method, url, requestBody) {
                return await r2[method](url, requestBody)
        }
}

comms.requestData('get', 'http://localhost:8080');

from r2.

bmcminn avatar bmcminn commented on July 29, 2024

I just hit this same issue and it's because you installed the wrong module. The r2 library on NPM is for a sales force capable single page web app composition module: https://www.npmjs.com/package/r2

@mikeal I know the package.json file specifies name: "r2" but I think issue #7 can also address this problem with name conflicts on the NPM registry as well.

from r2.

aganglada avatar aganglada commented on July 29, 2024

@g8up Did that, now running into

Error: Cannot find module 'caseless'

from r2.

stripedpajamas avatar stripedpajamas commented on July 29, 2024

@aganglada there's a PR open for the fix for that... caseless isn't marked as dependency but it should be. Probably just install caseless manually or wait for #8 to be merged.

from r2.

aganglada avatar aganglada commented on July 29, 2024

Alright, that what I did for now :) Thanks!

from r2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.