question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Example] : Error: Cannot find module 'ejs'

See original GitHub issue

I’m trying to run the commands for the example provided in the repository. However, when I use npm or yarn, I get the following error. Any thoughts on what might be causing this issue? Thank you

λ  yarn docs                                                                                                  
yarn run v1.12.3                                                                                              
warning package.json: No license field                                                                        
$ jsdoc -d docs -c .jsdoc.js                                                                                  
module.js:549                                                                                                 
    throw err;                                                                                                
    ^                                                                                                         
                                                                                                              
Error: Cannot find module 'ejs'                                                                               
    at Function.Module._resolveFilename (module.js:547:15)                                                    
    at Requizzle.requizzle (D:\Git\jsdoc-vuejs\example\node_modules\requizzle\lib\requizzle.js:87:22)         
    at infectProxy (D:\Git\jsdoc-vuejs\example\node_modules\requizzle\lib\loader.js:82:28)                    
    at Module.targetModule.require (D:\Git\jsdoc-vuejs\example\node_modules\requizzle\lib\loader.js:101:11)   
    at require (internal/module.js:11:18)                                                                     
    at Object.<anonymous> (D:\Git\jsdoc-vuejs\lib\core\renderer.js:1:249)                                     
    at Module._compile (module.js:652:30)                                                                     
    at Object.Module._extensions..js (module.js:663:10)                                                       
    at Module.load (module.js:565:32)                                                                         
    at Object.load (D:\Git\jsdoc-vuejs\example\node_modules\requizzle\lib\loader.js:112:15)                   
    at Requizzle.requizzle (D:\Git\jsdoc-vuejs\example\node_modules\requizzle\lib\requizzle.js:90:24)         
    at infectProxy (D:\Git\jsdoc-vuejs\example\node_modules\requizzle\lib\loader.js:82:28)                    
    at Module.targetModule.require (D:\Git\jsdoc-vuejs\example\node_modules\requizzle\lib\loader.js:101:11)   
    at require (internal/module.js:11:18)                                                                     
    at Object.<anonymous> (D:\Git\jsdoc-vuejs\index.js:3:16)                                                  
    at Module._compile (module.js:652:30)                                                                     
error Command failed with exit code 1.                                                                        
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.                          

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Kocalcommented, Nov 22, 2018

Oh, okay 👍

By the way there is also some dependencies in example, so you must run:

git clone https://github.com/Kocal/jsdoc-vuejs

cd jsdoc-vuejs
npm install

cd /example
npm install
npm run docs

0reactions
Kocalcommented, Nov 22, 2018

Yes, feel free to! 😊 It would be nice to add it in Testing section, with steps:

  • git clone
  • yarn install

And also update steps for E2E 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Cannot find module 'ejs' - node.js - Stack Overflow
On your terminal or cmd -> Go to your apps directory, · cd pathtoyourapp/AppName · rerun your 'npm install' · rerun your 'npm...
Read more >
Fix - Cannot find module 'ejs' error in Node.js - Reactgo
The Cannot find module ejs error occurs, if you're trying to access a ejs module that is currently not installed in your project....
Read more >
Error Cannot find module ejs | Edureka Community
Go up one level (above app.js) and do npm install ejs. It will create a new node_modules folder and Express should find the...
Read more >
Fix - Cannot find module 'ejs' error in Node.js - onlinecode
To fix the error, open the project root folder in your terminal and run the following command to install the ejs module. npm...
Read more >
Node.js – Error: Cannot find module 'ejs' - iTecNote
ejsexpressnode.js. Here is my complete error: Error: Cannot find module 'ejs' at Function._resolveFilename (module.js:317:11) at Function.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found