Skip to content
CCPEDIAby Unity Nodes
Discussions/App Development/NPM Server not work in DAML on FabricForum ↗

NPM Server not work in DAML on Fabric

App Development12 posts640 views13 likesLast activity Nov 2020
LI
lisandro_iraguenOP
Nov 2020 2

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

CO
cocreature
Nov 2020 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.

LI
lisandro_iraguen
Nov 2020 1

Hello, I got this error when I do npm start

CO
cocreature
Nov 2020 1

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

LI
lisandro_iraguen
Nov 2020 1

this one is the install log

CO
cocreature
Nov 2020 1

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.

LI
lisandro_iraguen
Nov 2020 1

similar issue if I run that code, look


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

CO
cocreature
Nov 2020 1

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.

LI
lisandro_iraguen
Nov 2020 1

install is done :smiley:

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

CO
cocreature
Nov 2020 1

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.

CO
cocreature
Nov 2020 1

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.

LI
lisandro_iraguen
Nov 2020 1

done, thanks a lot :smiley:
CaptureError6

← Back to Discussions