# P5.js not found in parent directory

**URL:** <https://discourse.processing.org/t/p5-js-not-found-in-parent-directory/21981>\
**Category:** Beginners\
**Created:** [June 18, 2020, 6:03pm UTC](https://discourse.processing.org/t/p5-js-not-found-in-parent-directory/21981 "2020-06-18T18:03:49Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [June 18, 2020, 8:38pm UTC](https://discourse.processing.org/t/p5-js-not-found-in-parent-directory/21981/3 "2020-06-18T20:38:06Z")

</div>

> [@astrogeek](#):
>
> Any advice is greatly appreciated!

> [@Sketch is displayed twice inside my index.html page](https://discourse.processing.org/t/sketch-is-displayed-twice-inside-my-index-html-page/15335/9):
>
> My advice is to begin w/ a minimum runnable “index.html” template file like this 1: bulb \<script defer src=https://Unpkg.com/p5\>\</script\> \<script defer src=sketch.js\>\</script\> Once verified it’s working, you can add more stuff to it little by little. sunglasses Here’s some online sketch using this very same minimum template: smile_cat

> [@CDN for 0.10.2?](https://discourse.processing.org/t/cdn-for-0-10-2/14804/2):
>
> Use the “index.html” minimal template file from this sketch below instead: bulb index.html: \<script defer src=https://Unpkg.com/p5\>\</script\> \<script defer src=sketch.js\>\</script\> Other alternative CDNs: file_cabinet[Unpkg.com/p5/](http://Unpkg.com/p5/)[cdn.JsDelivr.net/npm/p5/](http://cdn.JsDelivr.net/npm/p5/) As a last recourse, we can grab “p5.min.js” directly from their site: shushing_face[p5js.org/assets/js/p5.min.js](http://p5js.org/assets/js/p5.min.js)

> [@Help! Why I cannot use the P5JS](https://discourse.processing.org/t/help-why-i-cannot-use-the-p5js/18067/2):
>
> For an absolute beginner, my advice is to start on some p5js online editor, such as this 1: man_student[OpenProcessing.org/sketch/create](http://OpenProcessing.org/sketch/create) Some sketches I’ve got there btW: grinning By using such specialized p5js online resources we don’t need to make our own “index.html” file. wink When you decide it’s time to learn how to code your own “index.html” file, you can use more generic JS online editors, such as these 2 below: sunglasses You can also take a look at my sketches I…

---

_[View the full topic](https://discourse.processing.org/t/p5-js-not-found-in-parent-directory/21981)._
