NPM Server not work in DAML on Fabric

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

2 Likes

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.

1 Like

Hello, I got this error when I do npm start

1 Like

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

1 Like

this one is the install log

1 Like

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.

1 Like

similar issue if I run that code, look


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

1 Like

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.

1 Like

install is done :smiley:

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

1 Like

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.

1 Like

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.

1 Like

done, thanks a lot :smiley:
CaptureError6

1 Like