NPM Server not work in DAML on Fabric
- lisandro_iraguenOP 2
on Step 9 the npm server doesn’t work. anyone know why?
- cocreature 1
Hi @lisandro_iraguen, welcome to the forum!
Which instructions are you following? Step 9 in GitHub - digital-asset/daml-on-fabric: Enabling DAML applications to run on Hyperledger Fabric is about authentication not the npm server.
It would be great if you could share the error you see.
- lisandro_iraguen 1
- cocreature 1
It looks like the
npm installstep failed. I recommend running just that from$HOME/my-app/uito see the output. - lisandro_iraguen 1
- cocreature 1
It looks like the codegen command in step 2 is incorrect which causes it to fail which in turn causes
npm installto fail. Try the following:daml codegen js .daml/dist/my-app-0.1.0.dar -o ui/daml.jsand then run
npm installagain. We’ll make sure to fix the instructions here. - lisandro_iraguen 1
- cocreature 1
It looks like you are running the
daml codegencommand from themy-app/uidirectory. You need to run it frommy-appinstead. - lisandro_iraguen 1
- cocreature 1
You need to run
npm installfrom within theuidirectory. Basically everything involvingnpmneeds to run fromuiwhere as thedamlcommands should run from the project root directory. - cocreature 1
And there was also a small typo in my command above (fixed in the meantime). It needs to be
-o ui/daml.jsnot-o daml.js. - lisandro_iraguen 1
done, thanks a lot






