# Cannot do 'npm start'

**URL:** <https://forum.canton.network/t/cannot-do-npm-start/4040>\
**Category:** App Development\
**Created:** [March 2, 2022, 2:11am UTC](https://forum.canton.network/t/cannot-do-npm-start/4040 "2022-03-02T02:11:43Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JimYe](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/jimye/32/721_2.png) [@JimYe](https://forum.canton.network/u/JimYe)\
**Post date:** [March 2, 2022, 2:11am UTC](https://forum.canton.network/t/cannot-do-npm-start/4040/1 "2022-03-02T02:11:43Z")

</div>

Hi there,

I was trying to follow the instruction in:

Daml 101: Meet Your Tools: Script, Sandbox, & Navigator [2021]  
https://www.youtube.com/embed/l5I5_LqanSc?feature=oembed&wmode=opaque&list=PLjLGVUzUMRxUqUXUGltc85HkB7CxsIYR4

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:

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/0/0bfb831d4e63449af0daf29222522c1d1a35c2f9.png)

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

---

<div class="post-metadata">

**Author:** ![Ben\_M](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/ben_m/32/3080_2.png) [@Ben\_M](https://forum.canton.network/u/Ben_M)\
**Post date:** [March 2, 2022, 3:38am UTC](https://forum.canton.network/t/cannot-do-npm-start/4040/2 "2022-03-02T03:38:18Z")

</div>

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.

 ![Screenshot from 2022-03-02 16-34-41](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/8/87e22ae6435306e568128c34e867d502364a7cf9.png)

---

<div class="post-metadata">

**Author:** ![nemanja](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/nemanja/32/842_2.png) [@nemanja](https://forum.canton.network/u/nemanja)\
**Post date:** [March 2, 2022, 7:17am UTC](https://forum.canton.network/t/cannot-do-npm-start/4040/3 "2022-03-02T07:17:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![JimYe](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/jimye/32/721_2.png) [@JimYe](https://forum.canton.network/u/JimYe)\
**Post date:** [March 2, 2022, 8:48am UTC](https://forum.canton.network/t/cannot-do-npm-start/4040/4 "2022-03-02T08:48:35Z")

</div>

Hi Ben,

Thank you very much! It works!

There are no errors anymore.

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

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/b/b9369bf3dd87e9c0a05718d4345108beafe7cce4.jpeg)

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

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/c/c39046037c4a93de8027982313e92c4c12d975f6.jpeg)

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

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/2/2aef33864ff22c3d02631cf7d779d7eb7f43da63.png)

why?

---

<div class="post-metadata">

**Author:** ![nemanja](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/nemanja/32/842_2.png) [@nemanja](https://forum.canton.network/u/nemanja)\
**Post date:** [March 2, 2022, 8:51am UTC](https://forum.canton.network/t/cannot-do-npm-start/4040/5 "2022-03-02T08:51:16Z")

</div>

Did you run `npm install` first in the `ui` folder?

---

<div class="post-metadata">

**Author:** ![JimYe](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/jimye/32/721_2.png) [@JimYe](https://forum.canton.network/u/JimYe)\
**Post date:** [March 2, 2022, 9:03am UTC](https://forum.canton.network/t/cannot-do-npm-start/4040/6 "2022-03-02T09:03:43Z")

</div>

Omg, it works!

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

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/c/c937b79f0e2550334b1dcca48c7201125611146d.png)  
 ![image](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/e/e23ec40d8d294788ea8bb00ec5c48890e6451176.jpeg)

And it seems I got another error in Terminal:

 ![image](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/4/4bbe58df5ac2c930d972d3053c87ff412aabfbd0.png)

---

<div class="post-metadata">

**Author:** ![Gary\_Verhaegen](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gary_verhaegen/32/81_2.png) [@Gary\_Verhaegen](https://forum.canton.network/u/Gary_Verhaegen)\
**Post date:** [March 3, 2022, 10:53am UTC](https://forum.canton.network/t/cannot-do-npm-start/4040/7 "2022-03-03T10:53:36Z")

</div>

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.
