2017-12-19 12 views
0

screenshot내가 2 개월 동안 응용 프로그램 작업을했다

인사들 이온 성 역할 (빈 페이지)와 로컬 호스트에 ionic3 응용 프로그램을 제공 할 수 없습니다, 그 전에 결코. 오늘 나는 이온 서비스를 타이핑했고 그것은 나에게 빈 페이지를 줬다. 나는 다시 다시 시도했다. 아무것도 바뀌지 않았다. 콘솔의

오류는 같다 :

``` 
Failed to load resource: the server responded with a status of 404 (Not Found) 
vendor.js Failed to load resource: the server responded with a status of 404 (Not Found) 
main.js Failed to load resource: the server responded with a status of 404 (Not Found) 
vendor.js Failed to load resource: the server responded with a status of 404 (Not Found) 
main.js Failed to load resource: the server responded with a status of 404 (Not Found) 
main.css Failed to load resource: the server responded with a status of 404 (Not Found) 
``` 

는 내가 인터넷에 솔루션을 검색 할 것을 시도 : 작동 didnt는

``` 
npm uninstall -g cordova ionic 
npm install -g cordova ionic 
``` 

하지만!

내 앱 폴더를 이전에 백업 했으므로 기억했습니다. 그래서 나는 그것을 시험해 보았다. 나는 그 백업 폴더의 www/build 폴더 파일을 최신 app-folder에 복사했습니다. 그리고 다시 ionic serve를 실행하십시오. 자동으로 모든 파일을 삭제하고 작동하지 않습니까?

내 앱을 제공 할 수 없습니까? 제발 도와주세요. 나는 그 충격을 받아들이 기 위해 아무 것도하지 않았다. 나는 충격을 받았다!

는 단말기

``` 
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser - 
Ctrl+C to cancel 
[04:35:39] watch started ... 
[04:35:39] build dev started ... 
[04:35:39] clean started ... 
[04:35:39] clean finished in 7 ms 
[04:35:39] copy started ... 
[04:35:39] deeplinks started ... 
[04:35:39] deeplinks finished in 236 ms 
[04:35:39] transpile started ... 
[04:35:43] dev server running: http://localhost:8100/ 

[OK] Development server running! 
    Local: http://localhost:8100 
    External: http://192.168.1.3:8100, http://192.168.136.1:8100, http://192.168.80.1:8100 
    DevApp: [email protected] on ASUS 

[04:35:44] copy finished in 4.77 s 
[04:35:44] watch ready in 4.94 s 

``

여기서 멈춘다.

내 이온 정보 :

``` 

cli packages: (C:\Users\Uğur\AppData\Roaming\npm\node_modules) 

    @ionic/cli-utils : 1.19.0 
    ionic (Ionic CLI) : 3.19.0 

global packages: 

    cordova (Cordova CLI) : 7.1.0 

local packages: 

    @ionic/app-scripts : 3.0.1 
    Cordova Platforms : none 
    Ionic Framework : ionic-angular 3.8.0 

System: 

    Node : v6.11.4 
    npm : 3.10.10 
    OS : Windows 8.1 

Environment Variables: 

    ANDROID_HOME : not set 

Misc: 

    backend : pro 
``` 
+0

** npm cache clean **을 실행하고 명령을 실행하십시오. –

+0

고마워요.하지만 didnt work – ugrdursun

+0

제가 스크린 샷을 추가했습니다. – ugrdursun

답변

0

당신이 그것을 관리하는 방법을 모르겠어요 포트 (8102)에서 응용 프로그램을 제공하십시오. 하지만 빌드를 사용할 수있는 포트를 변경했습니다. 그래서 다음 명령을 실행

$ ionic serve --p 8102 
+0

Didnt work. 나는 이미 8100, 8101, 8012 심지어 8013을 시도했다. – ugrdursun

0

가 나는 해결책을 찾을 수 couldnt는 다행히 내가 최근에 프로젝트를 백업. 나는 주 폴더에 무엇을했는지 잘 모르지만 백업 폴더는 잘 작동한다. 나는 똑같은 변화 (업데이트)와 그 일을했다.