# Build Web Apps with Expressjs

**URL:** <https://forum.freecodecamp.org/t/build-web-apps-with-expressjs/90673>\
**Category:** General\
**Created:** [February 24, 2017, 2:28am UTC](https://forum.freecodecamp.org/t/build-web-apps-with-expressjs/90673 "2017-02-24T02:28:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![devNoiseConsulting](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/devnoiseconsulting/32/160775_2.png) [@devNoiseConsulting](https://forum.freecodecamp.org/u/devNoiseConsulting)\
**Post date:** [February 24, 2017, 2:28am UTC](https://forum.freecodecamp.org/t/build-web-apps-with-expressjs/90673/1 "2017-02-24T02:28:45Z")

</div>

Has anyone worked on “Build Web Apps with Expressjs” recently? Currently using the Cloud9 env to do my work.

I’m stuck at the “Jade” challenge. I believe that I have the right code, but get an error when trying to verify the solution. “Error: Cannot find module ‘jade’”

I’m tempted to just install expressworks on my laptop and complete the challenges there. Any suggestions? Thanks

---

<div class="post-metadata">

**Author:** ![AdventureBear](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adventurebear/32/74786_2.png) [@AdventureBear](https://forum.freecodecamp.org/u/AdventureBear)\
**Post date:** [February 24, 2017, 2:50am UTC](https://forum.freecodecamp.org/t/build-web-apps-with-expressjs/90673/2 "2017-02-24T02:50:01Z")

</div>

Not sure if this helps but Jade is now Pug and likely has breaking changes with Jade. You may need to either install an older version of Jade, or look up the documentation for Pug and use the current methods, etc.

Does that help?

---

<div class="post-metadata">

**Author:** ![Josh5231](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/josh5231/32/3269_2.png) [@Josh5231](https://forum.freecodecamp.org/u/Josh5231)\
**Post date:** [February 24, 2017, 3:47am UTC](https://forum.freecodecamp.org/t/build-web-apps-with-expressjs/90673/3 "2017-02-24T03:47:12Z")

</div>

When I went through that I couldn’t get it to work either. I ended up just skipping it. So unless you intend to use jade/pug in the near future, I wouldn’t worry about it.

---

<div class="post-metadata">

**Author:** ![devNoiseConsulting](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/devnoiseconsulting/32/160775_2.png) [@devNoiseConsulting](https://forum.freecodecamp.org/u/devNoiseConsulting)\
**Post date:** [February 24, 2017, 5:17am UTC](https://forum.freecodecamp.org/t/build-web-apps-with-expressjs/90673/4 "2017-02-24T05:17:02Z")

</div>

It helps a bit. I went forward and tried to get the solution working by using pug. This involved:

- `npm install pug --save`
- `cd /home/ubuntu/.nvm/versions/node/v4.1.2/lib/node_modules/expressworks/exercises/jade/templates`
- `cp index.jade index.pug`

In the code, I had to tweak the line that set the view engine to pug.  
`app.set('view engine', 'pug');`

---

<div class="post-metadata">

**Author:** ![AdventureBear](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/adventurebear/32/74786_2.png) [@AdventureBear](https://forum.freecodecamp.org/u/AdventureBear)\
**Post date:** [February 24, 2017, 6:02am UTC](https://forum.freecodecamp.org/t/build-web-apps-with-expressjs/90673/5 "2017-02-24T06:02:37Z")

</div>

it’s worth getting jade/pug to work, you may not choose to work with it a lot but knowing it or a similar templatling language is necessary for full stack. (you can also use react/angular/ejs/etc)

---

<div class="post-metadata">

**Author:** ![erlichArbman](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/erlicharbman/32/36500_2.png) [@erlichArbman](https://forum.freecodecamp.org/u/erlichArbman)\
**Post date:** [March 14, 2017, 4:48pm UTC](https://forum.freecodecamp.org/t/build-web-apps-with-expressjs/90673/6 "2017-03-14T16:48:50Z")

</div>

I was able to get this assignment work with both Jade v1.11.0 and Pug v0.1.0 by following the instructions/hints. To get Pug to work, just replace all instances of “jade” with “pug”.

Also, don’t forget to npm install Jade or Pug.

---

<div class="post-metadata">

**Author:** ![tech-dom](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/tech-dom/32/28697_2.png) [@tech-dom](https://forum.freecodecamp.org/u/tech-dom)\
**Post date:** [May 2, 2017, 1:56pm UTC](https://forum.freecodecamp.org/t/build-web-apps-with-expressjs/90673/7 "2017-05-02T13:56:50Z")

</div>

Thanks, I was stuck on this thing for weeks (not literally) trying to find out what the error was. Did this, then the verify flashed for a millisecond and I passed. 🙂

---

<div class="post-metadata">

**Author:** ![kevcomedia](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/kevcomedia/32/125737_2.png) [@kevcomedia](https://forum.freecodecamp.org/u/kevcomedia)\
**Post date:** [August 7, 2017, 1:43am UTC](https://forum.freecodecamp.org/t/build-web-apps-with-expressjs/90673/8 "2017-08-07T01:43:37Z")

</div>

Closed on August 7, 2017, 1:43am UTC


