错误:无法找到模块'@ ionic / app-scripts' [英] Error: Cannot find module '@ionic/app-scripts'

查看:403
本文介绍了错误:无法找到模块'@ ionic / app-scripts'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Ionic的新手。我按照Ionic文档开始,创建了一个名为super的项目示例。问题是,当我在项目目录中运行命令行 ionic serve 时,它抛出了一个错误错误:无法找到模块'@ 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'

推荐答案

当前与节点6和7兼容的应用程序脚本。
如果你安装了节点8,那么请卸载并安装node 6 stable版本。
这解决了错误,现在我可以使用离子3,角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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆