Skip to content
Discussions/App Development/Cannot do 'npm start'Forum ↗

Cannot do 'npm start'

App Development7 posts373 views1 likesLast activity Mar 2022
JI
JimYeOP
Mar 2022

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.

BE
Ben_M
Mar 2022

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.

NE
nemanja
Mar 2022

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

JI
JimYe
Mar 2022

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?

NE
nemanja
Mar 2022

Did you run npm install first in the ui folder?

JI
JimYe
Mar 2022

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:

GA
Gary_Verhaegen
Mar 2022

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.

← Back to Discussions