zoukankan      html  css  js  c++  java
  • Ionic 编译找不到index.html

    ionic 菜鸟 

    运行ionic serve提示找不到index.html  .

    [09:19:00] Failed to load index.html
    { Error: A watch configured to watch the following paths failed to start. It likely that a file referenced does not exist: D:3501dmhp-clientnewag01-dmhtct-clien
    tsrcassets***, D:3501dmhp-clientnewag01-dmhtct-clientsrcindex.html, D:3501dmhp-clientnewag01-dmhtct-clientsrcmanifest.json, D:3501dmhp-clientnewag01
    -dmhtct-clientsrcservice-worker.js, D:3501dmhp-clientnewag01-dmhtct-client ode_modulesioniconsdistfonts***, D:3501dmhp-clientnewag01-dmhtct-client od
    e_modulesionic-angularfonts***, D:3501dmhp-clientnewag01-dmhtct-client ode_modulesionic-angularpolyfillspolyfills.js, D:3501dmhp-clientnewag01-dmhtct-
    client ode_modulessw-toolboxsw-toolbox.js
    at BuildError.Error (native)
    at new BuildError (D:3501dmhp-clientnewag01-dmhtct-client ode_modules@ionicapp-scriptsdistutilerrors.js:16:28)
    at Timeout._onTimeout (D:3501dmhp-clientnewag01-dmhtct-client ode_modules@ionicapp-scriptsdistwatch.js:71:20)
    at ontimeout (timers.js:386:14)
    at tryOnTimeout (timers.js:250:5)
    at Timer.listOnTimeout (timers.js:214:5) hasBeenLogged: false, isFatal: false }

    观察目录 发现index.html 存在。    一直无法解决。

    查看生成的www文件夹。发现没有任何生成。

    运行ionic build 

    Running app-scripts build:
    [09:53:22] build dev started ...
    Error: ENOENT: no such file or directory, open 'D:3501dmhp-clientnewag01-dmhtct-client ode_modulesionic-angularpackage.json'
    at Error (native)

    无法编译 尽然没有ionic-angular   。   被自己蠢哭。

    安装 继续报错

    npm ERR! enoent ENOENT: no such file or directory, rename 'D:3501dmhp-clientnewag01-dmhtct-client ode_modulesionic-angular' -> 'D:3501dmhp-clientnewag01-dmh
    tct-client ode_modules.ionic-angular.DELETE'
    npm ERR! enoent This is related to npm not being able to find a file.
    npm ERR! enoent

    查看npm config edit 

    发现registry竟然没有。

    原因可能是用txt打开过,公司加密软件给加密了

    重新设置npm源

    重新安装

    安装成功 

    重新运行 

    该问题解决。

    粗心害死人 !   好奇害死猫。  

  • 相关阅读:
    最小生成树
    BZOJ3894:文理分科(最大流)(同BZoj3438)
    BZOJ3438:小M的作物 (最大闭合权图->最小割)
    BZOJ 1305:dance跳舞(二分+最大流)
    BZOJ1266:上学路线route (最短路+最小割)
    BZOJ1854:游戏(二分图匹配)
    【PowerOJ1738】最小路径覆盖
    【SPOJ839】Optimal Marks 网络流
    【USACO】AC自动机
    【国家集训队2011】聪聪可可 树分治
  • 原文地址:https://www.cnblogs.com/johnS/p/8940308.html
Copyright © 2011-2022 走看看