search

Home  >  Q&A  >  body text

node.js - ionic2 创建项目 ionic server 报这个错 有朋友可以帮忙看看吗!

PHP中文网PHP中文网2787 days ago326

reply all(2)I'll reply

  • 怪我咯

    怪我咯2017-04-17 16:19:24

    Look at the log and you will know what is wrong

    Error: Cannot find module `E:\node_modules\...`

    Never used it ionic,能不能把整个 log 发出来,别发图片。
    你可以先在试一试在项目根目录执行一下 npm install Install the dependencies.

    reply
    0
  • 阿神

    阿神2017-04-17 16:19:24

    Exception information shows that the @ionic/app-scripts package was not successfully installed. Check the local node_modules directory first

    Is there an app-scripts folder? If not, execute the following command on the command line and reinstall the dependency package:

    npm install @ionic/app-scripts@latest --save-dev

    Remarks:

    1. If you use npm to install, remember to set a domestic mirror, such as Taobao mirror:

    npm config set registry https://registry.npm.taobao.org

    2. Command line operation - ionic info can view detailed operating environment information

    reply
    0
  • Cancelreply