NPM Server not work in DAML on Fabric

on Step 9 the npm server doesn’t work. anyone know why?

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.

Hello, I got this error when I do npm start

It looks like the npm install step failed. I recommend running just that from $HOME/my-app/ui to see the output.

this one is the install log

It looks like the codegen command in step 2 is incorrect which causes it to fail which in turn causes npm install to fail. Try the following:

daml codegen js .daml/dist/my-app-0.1.0.dar -o ui/daml.js

and then run npm install again. We’ll make sure to fix the instructions here.

similar issue if I run that code, look


but it looks like something it’s missing from the tutorial

It looks like you are running the daml codegen command from the my-app/ui directory. You need to run it from my-app instead.

install is done :smiley:

but now when I do npm start it is not running.

You need to run npm install from within the ui directory. Basically everything involving npm needs to run from ui where as the daml commands should run from the project root directory.

And there was also a small typo in my command above (fixed in the meantime). It needs to be -o ui/daml.js not -o daml.js.

done, thanks a lot :smiley:
CaptureError6