找不到模块' .. \ npm \ node_modules \ yo \ lib \ cli.js'

时间:2016-10-10 14:41:36

标签: node.js api npm endpoints yo

当我尝试使用命令" yo angular-fullstack:端点名称"添加端点时,我收到此错误:

 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

在运行命令npm-install时,我收到此错误

> error C2373: '__pfnDliNotifyHook2'

1 个答案:

答案 0 :(得分:0)

通过将节点版本更改为较新版本来解决