# Problem with parcel build index.html

**URL:** <https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216>\
**Category:** HTML/CSS\
**Created:** [July 19, 2021, 7:42am UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216 "2021-07-19T07:42:18Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![somdhendup](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/somdhendup/32/828_2.png) [@somdhendup](https://forum.codewithmosh.com/u/somdhendup)\
**Post date:** [July 19, 2021, 7:42am UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/1 "2021-07-19T07:42:18Z")

</div>

Dear Everyone,

I am new to this programming world, and currently I am learning the Ultimate HTML5 & CSS3 series: Part 3.  
Under the Building for Production section, I am experiencing the problem.  
When I run with parcel build index.html, it gives error something like C:\Users\Wow\Desktop\Moshify\index.html: tree.render is not a function.

So, if some body helps me to fix this issue, its much appreciable and thankful.  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![sufian.babri](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/sufian.babri/32/1028_2.png) [@sufian.babri](https://forum.codewithmosh.com/u/sufian.babri)\
**Post date:** [July 20, 2021, 9:43pm UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/2 "2021-07-20T21:43:26Z")

</div>

Can you please share the complete error message? Also, if possible, please also share relevant code snippet(s).

---

<div class="post-metadata">

**Author:** ![somdhendup](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/somdhendup/32/828_2.png) [@somdhendup](https://forum.codewithmosh.com/u/somdhendup)\
**Post date:** [July 21, 2021, 2:54am UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/3 "2021-07-21T02:54:12Z")

</div>

Hi Sufian,

Thanks very much for your reply and the error details are as given below:

 ![parcel-build-index](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/8/85c30b61dd0293e669d25f94dfd161395899f278.gif)

Thanks

---

<div class="post-metadata">

**Author:** ![level1cr3](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@level1cr3](https://forum.codewithmosh.com/u/level1cr3)\
**Post date:** [July 21, 2021, 5:20am UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/4 "2021-07-21T05:20:25Z")

</div>

In root i.e. in MOSHIFY folder

1. create a file called “.htmlnanorc.js” (with no quotes “”)
2. paste below code and save it and then run ‘parcel build index.html’.

module.exports = {  
minifySvg: false  
}

---

<div class="post-metadata">

**Author:** ![somdhendup](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/somdhendup/32/828_2.png) [@somdhendup](https://forum.codewithmosh.com/u/somdhendup)\
**Post date:** [July 23, 2021, 5:37am UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/5 "2021-07-23T05:37:41Z")

</div>

Thanks very much for your great help!

---

<div class="post-metadata">

**Author:** ![sagmiau](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/sagmiau/32/1806_2.png) [@sagmiau](https://forum.codewithmosh.com/u/sagmiau)\
**Post date:** [August 5, 2021, 9:08am UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/6 "2021-08-05T09:08:05Z")

</div>

Thank you, it works!!

---

<div class="post-metadata">

**Author:** ![gabyreload](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/gabyreload/32/2072_2.png) [@gabyreload](https://forum.codewithmosh.com/u/gabyreload)\
**Post date:** [August 6, 2021, 10:43am UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/7 "2021-08-06T10:43:01Z")

</div>

I did this and works. But, when a try to commit, I get and error.  
Can you help me??

 ![error1](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/4e08e575ab49d786216976eb87cd4d861b56053c.png)

---

<div class="post-metadata">

**Author:** ![gabyreload](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/gabyreload/32/2072_2.png) [@gabyreload](https://forum.codewithmosh.com/u/gabyreload)\
**Post date:** [August 6, 2021, 10:45am UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/8 "2021-08-06T10:45:55Z")

</div>

![Captura de pantalla (17)](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/e/e0788aac081fb23acc48b92b58d0508d99c2cfb5.png)

This is the file that I added to solve the first problem

---

<div class="post-metadata">

**Author:** ![gabyreload](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/gabyreload/32/2072_2.png) [@gabyreload](https://forum.codewithmosh.com/u/gabyreload)\
**Post date:** [August 6, 2021, 2:46pm UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/9 "2021-08-06T14:46:46Z")

</div>

I fixed it. I closed VSCode and opened it again. Thanks anyway

---

<div class="post-metadata">

**Author:** ![bkomesu](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@bkomesu](https://forum.codewithmosh.com/u/bkomesu)\
**Post date:** [August 22, 2021, 4:47am UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/10 "2021-08-22T04:47:24Z")

</div>

My problem after this was that Netlify would not deploy successfully. It keeps telling me that “No such file or directory”

I tried the 1.12.3 ver of parcel as some have tried and wroked for them, but I still dont know what the problem is, has anybody encountered this?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/7/7320b719153b43e807c87f8c1333f9076811df15.png)

---

<div class="post-metadata">

**Author:** ![Aung](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@Aung](https://forum.codewithmosh.com/u/Aung)\
**Post date:** [September 12, 2021, 8:55am UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/11 "2021-09-12T08:55:20Z")

</div>

Hello Bro  
I have a problem in this step.How do I have to solve this step

 ![image](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/4/4bba22675b6d69e062a1f5cdaf332980cc02ed4d.jpeg)

---

<div class="post-metadata">

**Author:** ![sufian.babri](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/sufian.babri/32/1028_2.png) [@sufian.babri](https://forum.codewithmosh.com/u/sufian.babri)\
**Post date:** [September 12, 2021, 11:52am UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/12 "2021-09-12T11:52:40Z")

</div>

Just remove “sudo” from the command.

The “sudo” part only runs of Mac and Linux.

---

<div class="post-metadata">

**Author:** ![Aung](https://avatars.discourse-cdn.com/v4/letter/a/e68b1a/32.png) [@Aung](https://forum.codewithmosh.com/u/Aung)\
**Post date:** [September 12, 2021, 2:15pm UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/13 "2021-09-12T14:15:49Z")

</div>

Thanks bro.I will try it.

---

<div class="post-metadata">

**Author:** ![YuriAmancio](https://avatars.discourse-cdn.com/v4/letter/y/e47c2d/32.png) [@YuriAmancio](https://forum.codewithmosh.com/u/YuriAmancio)\
**Post date:** [November 12, 2022, 12:52pm UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/15 "2022-11-12T12:52:38Z")

</div>

Hey Bkomesu,  
did you get a solution for this problem?

---

<div class="post-metadata">

**Author:** ![orazbek](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/orazbek/32/5448_2.png) [@orazbek](https://forum.codewithmosh.com/u/orazbek)\
**Post date:** [January 24, 2023, 11:22pm UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/16 "2023-01-24T23:22:59Z")

</div>

Hey everyone,

Guys need your help

I got stuck on running index.html with parcel.

when i hit “parcel index.html” I’m getting the following error:

PS D:\coding\Moshify\> parcel index.html  
parcel : Unable to upload file C:\Users\Orazbek\AppData\Roaming\npm\parcel.ps1, because scripting is disabled on this system.  
For more information see about\_Execution\_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.  
string:1 character:1

- parcel index.html
- 

```auto
  + CategoryInfo : security bug: (:) [], PSSecurityException
  + FullyQualifiedErrorId : UnauthorizedAccess
```

---

<div class="post-metadata">

**Author:** ![bietty](https://avatars.discourse-cdn.com/v4/letter/b/58f4c7/32.png) [@bietty](https://forum.codewithmosh.com/u/bietty)\
**Post date:** [July 5, 2023, 9:58pm UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/17 "2023-07-05T21:58:04Z")

</div>

Ayo, thank you so much.

---

<div class="post-metadata">

**Author:** ![Emeka](https://avatars.discourse-cdn.com/v4/letter/e/65b543/32.png) [@Emeka](https://forum.codewithmosh.com/u/Emeka)\
**Post date:** [September 25, 2023, 3:14am UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/18 "2023-09-25T03:14:27Z")

</div>

I have been trying to build by installing globally on my Mac, using: Sudo npm I -g parcel bundler but it’s not been possible and I couldn’t get any password prompt . I got errors that I need to use -s. I don’t understand. Do I need to configure or do what to get through this stage?  
Thanks

---

<div class="post-metadata">

**Author:** ![Emeka](https://avatars.discourse-cdn.com/v4/letter/e/65b543/32.png) [@Emeka](https://forum.codewithmosh.com/u/Emeka)\
**Post date:** [September 25, 2023, 3:22am UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/19 "2023-09-25T03:22:06Z")

</div>

Hello everyone. Please,

I have been trying to build by installing globally on my Mac, using: sudo npm i -g parcel bundler but it’s not been possible and I couldn’t get any password prompts as explained by Mosh. I got errors that I need to use -s etc. Which I have tried it didn’t  
work. I can’t understand why?. Do I need to configure or do what to get through this stage?  
Thanks

---

<div class="post-metadata">

**Author:** ![sufian.babri](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/sufian.babri/32/1028_2.png) [@sufian.babri](https://forum.codewithmosh.com/u/sufian.babri)\
**Post date:** [September 25, 2023, 9:16pm UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/20 "2023-09-25T21:16:02Z")

</div>

Please post the exact error message here.

---

<div class="post-metadata">

**Author:** ![Emeka](https://avatars.discourse-cdn.com/v4/letter/e/65b543/32.png) [@Emeka](https://forum.codewithmosh.com/u/Emeka)\
**Post date:** [September 26, 2023, 4:03am UTC](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216/21 "2023-09-26T04:03:13Z")

</div>

Thank you so much Mr. Sufian,

I have attached

 ![IMG20230921052434](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/6/63ed382d21bcd6e14fe21782437ad0941c0c4741.jpeg)  
the photo response.

Thanks,  
Jo

 ![IMG20230921050417](https://us1.discourse-cdn.com/flex020/uploads/codewithmosh/original/2X/8/8acba8972ca5c6c464e1911b8e63ac8c6787dbf3.jpeg)

[Next page](https://forum.codewithmosh.com/t/problem-with-parcel-build-index-html/6216.md?page=2)
