Giter Club home page Giter Club logo

Comments (5)

Invertisment avatar Invertisment commented on July 18, 2024 2

If you have a local mirror site you should somehow make sure that it came from our repository and that it's compiled correctly.
This is what I have in my yarn.lock after a successful install:

algob@^0.0.3:
  version "0.0.3"
  resolved "https://registry.yarnpkg.com/algob/-/algob-0.0.3.tgz#6ea5f46463ffb183e443b10ccca9c7a7ad79d243"
  integrity sha512-g9uKdoi5SmHh9ujBeNn92ao/wHymibiWc785UvbClp40769aiawBeZHyaUIVzG/m/3mI9K9izLsr8C06Hilvhg==
  dependencies:
    algosdk "github:algorand/js-algorand-sdk#v1.7.0-beta"
...

And if I go to https://registry.yarnpkg.com/algob then I can find a link to our github repository:
git+https://github.com/scale-it/algorand-builder.git

I don't know which version is deployed to https://www.npmjs.com/package/algob/v/0.0.3 but it has to be a commit of a master branch.


If none of this suggests a solution then you can compile algob by hand and do yarn link to have it locally.
We currently don't have a way to import directly from github because we have a monorepo project (this would be a way to not have a npmjs package this early).

To run a linked package with yarn you can do this (assuming you use unix-like terminal):

git clone https://github.com/scale-it/algorand-builder/
cd algorand-builder/packages/algob
yarn build
yarn link

Then go to your project, and execute yarn link algob

This will add a link in your project (not exactly this way but it works similarly to this):
project/node_modules/algob -> ~/.../algorand-builder/packages/algob/build/

Then if you have your local yarn bin/ directory in $PATH you'll be able to even use the CLI tool (as you would regularly):
$> algob -h

from algo-builder.

robert-zaremba avatar robert-zaremba commented on July 18, 2024

Could be because the HTTPS connection is blocked.

Can you do this, please

mkdir test-algob
cd test-algob
yarn init
yarn add algob

I've just did it and it worked.
If this doesn't work then try to run (no need to repeat other steps):

npm install algob

Please let me know if this works.

from algo-builder.

Mine77 avatar Mine77 commented on July 18, 2024

Thanks. I'll give it a try.
Since it's my own problem then it's ok.
Let me try to figure it out myself.
Feel free to close the issue.

from algo-builder.

robert-zaremba avatar robert-zaremba commented on July 18, 2024

Let's keep it open to see if this worked or not.

from algo-builder.

robert-zaremba avatar robert-zaremba commented on July 18, 2024

BTW - in the master branch we did some breaking changes and checking now with the example.

from algo-builder.

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.