Sunday, 30 April 2017

debug Yeoman generator exception

I am trying to debug Yeoman generator. First of all I installed node-inspector by this command: npm install -g node-inspector but when i run node.js with Yeoman-cli in debug mode for sample jhipster generator with below command : node — debug C:\Users\Mohammad\AppData\Roaming\npm\node_modules\yo\lib\cli.js jhipster-fortune I encountered the below exception in console :

module.js:471
    throw err;
    ^

Error: Cannot find module 'C:\Users\Mohammad\—'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3 

my nodejs version is v6.10.0 and my npm vwersio is 4.5.0

Could Anyone help me with this issue ?



via hadi

No comments:

Post a Comment