Comments (6)
@sornss
I have tried that earlier but no luck.
The problem is that package.json file of git project points to nan 2.7.0 .. whereas It should point to nan 2.10.0..
What changes do I make to make it right ?
from education.
I also ran into this problem. Attempting an npm update
also failed, with npm suggesting I change ownership of the .config file in my home dir:
sudo chown -R $USER:$(id -gn $USER) /home/<username>/.config
After I did this I ran npm update
followed by npm install
. This seems to have fixed the issue.
from education.
Had the same issue on Mac OS X Hight Sierra. Seems like nan
version used by fabric-client
is too outdated. I had no time to investigate all the details and try different combinations of node/npm/dependencies and fight build issues on my Mac. So I just spin up a docker container with node
version 8 (had this one already pulled, but I think any other version will work too). The only thing I need to fix is URLs used by client application. Here is an instruction
cd ./education/LFS171x/fabric-material/tuna-app
# remove already installed modules, because inside docker there would be other platform tools
rm -rf node_modules
# patch URLs, we will need it soon
grep -rl "localhost" --exclude-dir node_modules . | xargs -n 1 sed -i'.bak' 's/localhost/host.docker.internal/'
# spin docker container
docker run -it -v `pwd`:/usr/src/app -p 8000:8000 --name edx-tuna-app node:8 bash
Once image will be downloaded you will see a prompt like root@703e329f2451:/usr/src/app#
type following instructions there
cd /usr/src/app
npm install [email protected]
npm install fabric-ca-client
npm install
# create dir for credentials
mkdir ~/.hfc-key-store/
Now you're ready to start, just execute following instructions (in the same session).
node registerAdmin.js
node registerUser.js
node server.js
Now if you'll open http://localhost:8000
you should see an application interface.
from education.
How about:
npm uninstall nan
npm install https://github.com/nodejs/nan
and try again
from education.
Try Removing the node_modules folder. Then try npm install.
Also from what I see your problem is not with nan but with fabric-client.
Try
npm install fabric-client
npm instal fabric-ca-client
from education.
Same problem here. Nothing helps so far.. but I am using Mac
from education.
Related Issues (20)
- Successfully committed the change to the ledger by the peer HOT 4
- deploying error
- getting issue while running node Query.js HOT 4
- Transaction failed to be committed to the ledger due to ::TIMEOUT
- Missing source material for course LFS170x HOT 2
- general id validation failed
- Could not find chaincode with the name 'tuna-app'
- Failed to invoke HOT 2
- container is not running HOT 1
- Hyperledger Indy error: CommonInvalidStructure while using await sdk.proverCreateProof()
- Indy Agent Demonstration problem: Alice´s web server error.
- No valid responses from any peers
- Demo does not work with Firefox correctly
- Card not found
- outdated link to Hyperledger Indy Project HOT 1
- Difference between ./manage start and ./manage up while starting Indy Demo HOT 2
- Indy Explorer not starting HOT 2
- Hyperledger Indy Demo - Login page not working
- Run application on single port for all agents HOT 1
- whats the diff between the /etc/hyperledger and /var/hyperledger
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 education.