title: How to use EJS in Node.js instead of JADE
body: <p>I'm trying to create a simple app with express but i want to use EJS instead of JADE. So I do the following:</p>
  
  <ul>
  <li>Step 1 npm install express generator -g </li>
  <li>Step 2 express myApp </li>
  <li>Step 3 cd myApp  </li>
  <li>Step 4 npm install  </li>
  <li>Step 5 npm install ejs  </li>
  <li>Step 6 Replace app.set('view engine', 'jade'); with app.set('view engine', 'ejs'); </li>
  <li>Step 7 run the Application using command set debug=myApp:* &amp; npm start</li>
  </ul>
  
  <p>But when i'm trying to see my web Page through localhost:3000 it shows me an error.</p>
  
  <pre><code>Error: Failed to lookup view "error" in views directory "E:\Express\myApp\views"
     at EventEmitter.render (E:\Express\myApp\node_modules\express\lib\application.js:579:17)
     at ServerResponse.render (E:\Express\myApp\node_modules\express\lib\response.js:961:7)
     at E:\Express\myApp\app.js:53:7 
     at Layer.handle_error (E:\Express\myApp\node_modules\express\lib\router\layer.js:71:5)
     at trim_prefix (E:\Express\myApp\node_modules\express\lib\router\index.js:310:13)
     at E:\Express\myApp\node_modules\express\lib\router\index.js:280:7
     at Function.process_params (E:\Express\myApp\node_modules\express\lib\router\index.js:330:12)
     at IncomingMessage.next (E:\Express\myApp\node_modules\express\lib\router\index.js:271:10)
     at done (E:\Express\myApp\node_modules\express\lib\response.js:956:25)
     at EventEmitter.render (E:\Express\myApp\node_modules\express\lib\application.js:581:14)
  </code></pre>
  
  <p>Please tell me why it's happening.</p>