错误:找不到模块“@ionic/app-scripts" [英] Error: Cannot find module '@ionic/app-scripts'
问题描述
我是 Ionic 的新手.我正在关注 Ionic 文档入门",创建了一个名为super"的项目示例.问题是,当我在项目目录中运行命令行 ionic serve
时,它抛出了一个错误 Error: Cannot find module '@ionic/app-scripts'
>
I'm new to Ionic. I was following the Ionic documentation "get started", created a project sample named "super". The problem is that when I run the command line ionic serve
in the project directory, it threw an error Error: Cannot find module '@ionic/app-scripts'
推荐答案
app-scripts 当前与节点 6 和 7 兼容.如果您安装了节点 8,那么请卸载并安装节点 6 稳定版本.这解决了错误,现在我可以使用 ionic 3, angular 4 .保重!
app-scripts currently compatible with node 6 and 7. İf you installed node 8, then please uninstall and install node 6 stable version. This solved error and now i can use ionic 3, angular 4 . Take care!
这篇关于错误:找不到模块“@ionic/app-scripts"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!