Git Product home page Git Product logo

Comments (6)

tushargandhi87 avatar tushargandhi87 commented on September 13, 2024 1

@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.

binarysun avatar binarysun commented on September 13, 2024 1

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.

DimGun avatar DimGun commented on September 13, 2024 1

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.

sornss avatar sornss commented on September 13, 2024

How about:

npm uninstall nan
npm install https://github.com/nodejs/nan

and try again

from education.

arijitthehacker avatar arijitthehacker commented on September 13, 2024

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.

RadkaKittova avatar RadkaKittova commented on September 13, 2024

Same problem here. Nothing helps so far.. but I am using Mac

from education.

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.