离子2抛出错误module.js:471

时间:2017-01-04 11:57:55

标签: ionic-framework npm ionic2 npm-install

我在离子2中完成了我的项目,突然我试图运行

ionic serve 

我收到了这些错误

    module.js:471
    throw err;
    ^

Error: Cannot find module 'C:\Users\adirz\myapps\HaverSami\node_modules\ionic\bin\ionic'
    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

1 个答案:

答案 0 :(得分:0)

以管理员身份打开 CMD(CLI),然后输入npm install -g ionic@latest。之后,再次尝试ionic serve