我的 ionic serve 命令出错。我可以通过 npm run ionic:serve 为应用程序提供服务。我搜索了有关此内容的内容,并添加了 ionic serve --verbose 的输出。请帮助摆脱这种情况。
离子信息输出是这样的:
cli packages: (C:\Users\DELL\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.1
ionic (Ionic CLI) : 3.19.1
global packages:
cordova (Cordova CLI) : 8.0.0
local packages:
@ionic/app-scripts : 3.1.8
Cordova Platforms : windows broken
Ionic Framework : ionic-angular 3.9.2
System:
Node : v8.4.0
npm : 5.3.0
OS : Windows 8.1
Environment Variables:
ANDROID_HOME : C:\Users\DELL\AppData\Local\Android\sdk;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools
ionic serve --verbose 输出是这样的:
[DEBUG] Reason for not using local CLI: LOCAL_CLI_NOT_FOUND
[DEBUG] CLI flags: { interactive: true, confirm: false }
[DEBUG] { cwd: 'C:\\Users\\DELL\\garageApp', local: false, binPath:
'C:\\Users\\DELL\\AppData\\Roaming\\npm\\node_modules\\ionic\\bin\\ionic', libPath:
'C:\\Users\\DELL\\AppData\\Roaming\\npm\\node_modules\\ionic\\dist\\index.js' }
[DEBUG] Daemon found (pid: 3040)
Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser -
Ctrl+C to cancel
[16:53:29] watch started ...
[16:53:29] build dev started ...
[16:53:29] clean started ...
[16:53:29] clean finished in 88 ms
[16:53:29] copy started ...
[16:53:30] deeplinks started ...
[16:53:30] deeplinks finished in 252 ms
[16:53:30] transpile started ...
[16:53:47] transpile finished in 17.42 s
[16:53:47] preprocess started ...
[16:53:47] preprocess finished in 5 ms
[16:53:47] webpack started ...
[16:53:48] copy finished in 18.51 s
[16:54:15] webpack finished in 27.23 s
[16:54:15] sass started ...
Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
[16:54:20] sass finished in 5.78 s
[16:54:20] postprocess started ...
[16:54:21] postprocess finished in 73 ms
[16:54:21] lint started ...
[16:54:21] build dev finished in 51.56 s
[16:54:22] watch ready in 52.37 s
[16:54:22] dev server running: http://localhost:8100/
[OK] Development server running!
Local: http://localhost:8100
External: http://192.168.1.14:8100
DevApp: garageApp@8100 on admin
E:\garage-frontend>