码迷,mamicode.com
首页 > 其他好文 > 详细

ionic报错: Failed to load resource

时间:2017-12-28 19:47:04      阅读:259      评论:0      收藏:0      [点我收藏+]

标签:目录   time   gif   导致   types   display   9.1   let   exit   

ionic报错: Failed to load resource 导致项目启动不起来

技术分享图片

该问题的最终解决办法是,把git项目重新克隆了一遍。所以今天并没有找到错误的原因

 

记录解决过程

发现这些丢失的文件都是在build目录下的

技术分享图片

所以执行build命令,但是报错如下:

技术分享图片

 

这个错误搞不懂,没搜到解决办法,于是想先删除了node_modules,在安装
重新运行npm install命令 安装


结果报错:从github下载超时

Downloading binary from https://github.com/sass/node-sass/releases/download/v4.5.3/win32-x64-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.5.3/win32-x64-57_binding.node":

connect ETIMEDOUT 54.231.49.194:443

 

这里尝试了很多解决办法,终于可以下载了

但是再返回执行 build命令,还是报错,绝望了

 

技术分享图片
[17:05:23]  ionic-app-script task: "build" 
[17:05:23]  Error: Debug Failure. 
Error: Debug Failure. 
    at typeToString (E:\Workspaces\WebStormProject\guizhouApp\node_modules\typescript\lib\typescript.js:28777:22)
    at reportRelationError (E:\Workspaces\WebStormProject\guizhouApp\node_modules\typescript\lib\typescript.js:34714:34)
    at isRelatedTo (E:\Workspaces\WebStormProject\guizhouApp\node_modules\typescript\lib\typescript.js:34860:21)
    at checkTypeRelatedTo (E:\Workspaces\WebStormProject\guizhouApp\node_modules\typescript\lib\typescript.js:34697:26)
    at checkTypeAssignableTo (E:\Workspaces\WebStormProject\guizhouApp\node_modules\typescript\lib\typescript.js:34398:20)
    at checkVariableLikeDeclaration (E:\Workspaces\WebStormProject\guizhouApp\node_modules\typescript\lib\typescript.js:44884:21)
    at checkPropertyDeclaration (E:\Workspaces\WebStormProject\guizhouApp\node_modules\typescript\lib\typescript.js:43383:13)
    at checkSourceElement (E:\Workspaces\WebStormProject\guizhouApp\node_modules\typescript\lib\typescript.js:46700:28)
    at Object.forEach (E:\Workspaces\WebStormProject\guizhouApp\node_modules\typescript\lib\typescript.js:1506:30)
    at checkClassDeclaration (E:\Workspaces\WebStormProject\guizhouApp\node_modules\typescript\lib\typescript.js:45765:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! guizhouApp@0.0.1 build: `ionic-app-scripts build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the guizhouApp@0.0.1 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     E:\jiashubing\npm_cache\_logs\2017-12-28T09_05_23_905Z-debug.log
View Code

 

 

 

ionic报错: Failed to load resource

标签:目录   time   gif   导致   types   display   9.1   let   exit   

原文地址:https://www.cnblogs.com/acm-bingzi/p/ionicFailed.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!