node.js - ionic2 创建项目 ionic server 报这个错 有朋友可以帮忙看看吗!
PHP中文网
PHP中文网 2017-04-17 16:17:24
0
2
344
PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
刘奇

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.

阿神

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template