Comments (12)
I'm especially in favor of using Yarn because it offers more options.
Given that I haven't really delved into yarn
vs npm
thoroughly I am alright switching based off your guys' endorsements of it.
from bifold-wallet.
refer to pull request: #43
from bifold-wallet.
Thanks for posting this issue @Asvoria! Could you post the error you get if you don't use --force
?
Maybe we can resolve the issue instead of adding this to the readme
from bifold-wallet.
Just now i tried to recreate the error without using --force
while npm install
.
I realised it is due to npm version 6.14.12.
After updated the npm to version 7.11.2 with the command nvm install v16.1.0
,
it went through npm install
without --force
without error.
Below are the error occurs when using npm version 6.14.12 without --force
ld: library not found for -lindy
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/indynodejs.node] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/asvoriakuan/.nvm/versions/node/v12.22.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:314:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
gyp ERR! System Darwin 20.4.0
gyp ERR! command "/Users/asvoriakuan/.nvm/versions/node/v12.22.1/bin/node" "/Users/asvoriakuan/.nvm/versions/node/v12.22.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/asvoriakuan/Documents/smartloan-mobile-agent/node_modules/indy-sdk
gyp ERR! node -v v12.22.1
gyp ERR! node-gyp -v v5.1.0
gyp ERR! not ok
> [email protected] install /Users/asvoriakuan/Documents/smartloan-mobile-agent/node_modules/husky
> node husky install
husky > Setting up git hooks
git rev-parse command failed. Got fatal: not a git repository (or any of the parent directories): .git
husky > Failed to install
from bifold-wallet.
Hmm only thing I can find is this issue: typicode/husky#584
Are you running the install script from the repository root?
from bifold-wallet.
@JamesKEbert as a side question, are you fine with moving to Yarn? We're using it for AFJ and I've generally encountered less errors using Yarn for development.
Would also be nice to use yarn workspaces when/if we move to a monorepo
from bifold-wallet.
Hmm only thing I can find is this issue: typicode/husky#584
Are you running the install script from the repository root?
Or we could try updating husky to the newest major. We're on 4 while 6 is out
from bifold-wallet.
@TimoGlastra could this be related to our recent addition of the indy-sdk types?
"@types/rn-indy-sdk": "npm:@types/indy-sdk@^1.15.2",
Since it seems to be trying to use node-gyp
, which shouldn't be required on the RN side of things AFAIK.
from bifold-wallet.
@JamesKEbert as a side question, are you fine with moving to Yarn? We're using it for AFJ and I've generally encountered less errors using Yarn for development.
Would also be nice to use yarn workspaces when/if we move to a monorepo
And as to the side question @TimoGlastra, I've normally preferred to utilize npm--especially since I haven't seen large benefits from using yarn, although I haven't actually done too much with yarn, so I may be mistaken there.
So, I don't think I would be opposed since that would align us with AFJ.
from bifold-wallet.
I'm not up to speed with this issue, just reacting to the side note here. I ran into various issues in previous projects using NPM that were all resolved by switching to Yarn.
I'm especially in favor of using Yarn because it offers more options. For example: you can pass a --json
option to Yarn which makes it output the STDOUT logs in JSON-Lines format. With NPM you don't have that option as far as I know. Although this is a feature we'd probably never have to use, I think it's nice to go for a package manager that offers this kind of flexibility!
from bifold-wallet.
@Asvoria I found this StackOverlow question regarding node-gyp and npm install --force
. You might want to try the "delete the $HOME/.node_gyp folder and run npm update" fix that is stated there. I'm not super familiar, but I have ran into some node-gyp caching issues in the past.
from bifold-wallet.
@Asvoria I found this StackOverlow question regarding node-gyp and
npm install --force
. You might want to try the "delete the $HOME/.node_gyp folder and run npm update" fix that is stated there. I'm not super familiar, but I have ran into some node-gyp caching issues in the past.
The node-gyp error is unrelated to this I think. AFJ has indy-sdk
as an optionalDependency
which means it will try to install indy-sdk, but allow it to fail. This was convenient when AFJ still needed to be manually packed, however now that it is released to NPM we should make it a dev dependency again
from bifold-wallet.
Related Issues (20)
- Error running bifold on android virtual (pixel 3a) and physical (pixel 7) phone HOT 4
- Connectionless invitations are interpreted as invalid QR when the invitation is valid and action proceeded
- Does Aries Mobile Wallet allow for auto_accept parameters to work?
- Missing credentials in proof request not being grouped properly HOT 1
- Deeplink returns error when app times out (ios and android) HOT 2
- Failed to install the app HOT 1
- Possibility of bypassing the PIN lock mechanism HOT 2
- Failed to process revocation notification message HOT 1
- Proposal for Aries Bifold to join the OpenWallet Foundation HOT 4
- Pool timeout during issue-credential - No retry mechanism
- Issue with Wallet Initialization - "Error executing query: Profile not found" HOT 1
- Mediator Request was aborted due to timeout HOT 1
- Message unpack failed HOT 2
- No corresponding recipient key found in ('BeJExxxxxxxxxxxxxxxxxxxxxxxx') and Message Unpack failed HOT 1
- Group messaging query HOT 1
- DIDComm over Bluetooth LE
- Selective Disclosure Feature
- TextEncoder undefined on ios deployment
- A way to detect Biometry type for Android/iOS devices
- Chat feature becoming optional
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 bifold-wallet.