Comments (5)
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.
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.
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.
Let's keep it open to see if this worked or not.
from algo-builder.
BTW - in the master branch we did some breaking changes and checking now with the example.
from algo-builder.
Related Issues (20)
- Add support `loadLogic` for *.teal program and SCParams HOT 3
- Contract to contract call HOT 2
- Unable to compile contracts on Windows machine HOT 11
- Mocha printing "ASA file not defined" HOT 2
- Rename optIntoASA to optInToASA HOT 2
- Getting warning for opt out of asset transaction in Mocha
- Allow `getProgram` to compile files outside of assets directory HOT 4
- Txn.asset_sender() gives different values in runtime and TestNet HOT 4
- RUNTIME_ERR1003: Type of data is incorrect. Expected unsigned integer (upto 64 bit) but got 0 HOT 7
- ABI support HOT 3
- TEAL 7 makes runtime fail HOT 4
- Improve runtime debug output for contract-to-contract calls
- Minimal interactive debugger for runtime HOT 1
- Overwritting parameter from algobuilder script to Pyteal programe with deployer.mkDelegatedLsig HOT 3
- [Yarn workspaces config] Cannot find module '@algo-builder/web' or its corresponding type declarations. HOT 4
- Error: RUNTIME_ERR1500: Invalid ASA definition: Total must be a positive number and smaller than 2^64-1 HOT 2
- Algob deploy not working HOT 7
- InnerTxn does not have 'foreignAssets' field HOT 1
- Invalid value "" for config.networks.testnet.token - Expected a value of type string (with length > 10). HOT 2
- Cannot find module 'findup-sync' in runtime package
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from algo-builder.