Search code examples
node.jsapinpmendpointsyo

Cannot find module '..\npm\node_modules\yo\lib\cli.js'


when i am trying to add endpoints using command "yo angular-fullstack:endpoint name", i am getting this error:

 module.js:341
    throw err;
    ^
Error: Cannot find module 'C:...npm\node_modules\yo\lib\cli.js'
    at Function.Module._resolveFilename (module.js:339:15)
    at Function.Module._load (module.js:290:25)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:140:18)
    at node.js:1001:3

while running command npm-install, i am getting this error

> error C2373: '__pfnDliNotifyHook2'

Solution

  • solved by changing the node version to a newer version