JimYe
March 2, 2022, 2:11am
1
Hi there,
I was trying to follow the instruction in:
Daml 101: Meet Your Tools: Script, Sandbox, & Navigator [2021]
VIDEO
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.
1 Like
Ben_M
March 2, 2022, 3:38am
2
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.
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
JimYe
March 2, 2022, 8:48am
4
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?
Did you run npm install
first in the ui
folder?
JimYe
March 2, 2022, 9:03am
6
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:
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.