Skip to content
CCPEDIAby Unity Nodes
App Development

Cannot do 'npm start'

7 posts412 views1 likesLast activity Mar 2022

  1. JimYeOP 1

    Hi there,

    I was trying to follow the instruction in:

    Daml 101: Meet Your Tools: Script, Sandbox, & Navigator [2021]

    at 7:25 / 15:00, the guy typed in ‘npm start’, which was working, but when I did that it was just errors like this:

    why it was like that and how can I fix it? Thank you!
    Btw, I have no coding experience.

  2. Ben_M

    Great question, and welcome to the Forum.

    I do not have a Mac but I did a quick look at the video from 7:00 minutes plus and I think it is possible that you missed a step.

    Rough process:

    • You make the app
    • Change into the /ui directory
    • Install the NPM components globally into the system
    • Install the project specific NPM bits
    • Start the app with the installed NPM bits

    A screenshot attached with the step highlighted in Red.

    Hope this helps.

  3. nemanja

    Hi @JimYe

    The error points to a path /User/yezhi0827/package.json suggesting that you’re trying to run the command from your user folder and not a daml project folder.

    As @Ben_M suggested you need to first create a Daml project using daml assistant and then go through the process

  4. JimYe

    Hi Ben,

    Thank you very much! It works!

    There are no errors anymore.

    However, I still did not get the result like this:

    And once the guy got this result, a login window pops up:

    Instead, this is what I got, and there was no login window:

    why?

  5. nemanja

    Did you run npm install first in the ui folder?

  6. JimYe

    Omg, it works!

    but why it was just blank? I’ve checked the address, they are the same:


    And it seems I got another error in Terminal:

  7. Gary_Verhaegen

    That looks like you may have skipped the daml start step.

    Once a topic is marked as solved, people tend not to look at it anymore. If you have further questions, it’s usually better to open a new topic.