首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Ionic数组:无法生成ionic APK,找不到模块‘./ V1 /V1’

Ionic数组:无法生成ionic APK,找不到模块‘./ V1 /V1’
EN

Stack Overflow用户
提问于 2018-10-30 15:00:06
回答 2查看 517关注 0票数 1

嗨,我正在尝试建立一个基于离子V1框架的应用程序。在控制台上构建抛出错误时的应用程序。

代码语言:javascript
复制
> ionic-v1 build
[11:49:25] Cannot load gulp: Error: Error in module: .\gulpfile.js:
Error: Cannot find module './array/insert'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (C:\Users\sagar\FourWin\node_modules\bower\lib\node_modules\mout\array.js:23:16)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
[11:49:25] Cannot run sass task: missing in gulpfile.js

我的package.json文件是这样的:

代码语言:javascript
复制
{
.
.
.
"dependencies": {
"gulp": "^3.5.6",
"gulp-sass": "^2.0.4",
"gulp-concat": "^2.2.0",
"gulp-minify-css": "^0.3.0",
"gulp-rename": "^1.2.0"
},
"devDependencies": {
"@ionic/v1-toolkit": "1.0.10",
"bower": "^1.3.3",
"gulp-util": "^2.2.14",
"shelljs": "^0.3.0"
},
"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-console",
"cordova-plugin-statusbar",
"cordova-plugin-device",
"cordova-plugin-splashscreen",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": []
}

如何处理这个问题。我尝试使用npm install查看是否缺少任何包,但仍然存在相同的错误

EN

回答 2

Stack Overflow用户

发布于 2018-10-30 17:28:39

在做了大约4个多小时的工作后,我找到了问题所在。我不确定是通过什么活动解决了这个问题,但我在这里列出了我的步骤

  1. 我已经单独升级了gulp的所有相关插件,作为package.json文件中依赖项的一部分。
  2. 问题得到了解决,但随后出现了新问题,即找不到编译Sass所需的sass文件模块

错误: Node Sass尚不支持您当前的环境: package.json

  • then 64位,运行时不受支持(57)

  • 然后我在Windows中将gulp sass版本从"gulp-sass": "^3.1.0"更改为"gulp-sass": "^2.0.4"我做了Windows

问题解决了。

票数 1
EN

Stack Overflow用户

发布于 2018-10-30 16:11:20

您能和我们分享一下您的gulpfile.js文件的内容吗?可能是内部依赖不再包含,因为离子V1开始变得陈旧……

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53058924

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档