ionic serve报错
D:\ionic2\amate>ionic serve -all
> amate-project@ ionic:serve D:\ionic2\amate
> ionic-app-scripts serve "--a" "--v2" "--lab" "--address" "0.0.0.0" "--port" "8101" "--livereload-port" "35730"
[17:03:37] ionic-app-scripts 1.1.4
[17:03:37] watch started ...
[17:03:37] build dev started ...
[17:03:37] clean started ...
[17:03:37] clean finished in 1 ms
[17:03:37] copy started ...
[17:03:37] transpile started ...
[17:03:39] transpile finished in 2.16 s
[17:03:39] preprocess started ...
[17:03:39] preprocess finished in 1 ms
[17:03:39] webpack started ...
[17:03:40] copy finished in 2.27 s
crypto.js:74
this._handle.update(data, encoding);
^
TypeError: Data must be a string or a buffer
at Hash.update (crypto.js:74:16)
at HarmonyExportImportedSpecifierDependency.updateHash (D:\ionic2\amate\node_modules\webpack\lib\dependencies\HarmonyExportImportedSpecifierDependency.js:144:8)
at D:\ionic2\amate\node_modules\webpack\lib\DependenciesBlock.js:33:5
at Array.forEach (native)
at NormalModule.DependenciesBlock.updateHash (D:\ionic2\amate\node_modules\webpack\lib\DependenciesBlock.js:32:20)
at NormalModule.Module.updateHash (D:\ionic2\amate\node_modules\webpack\lib\Module.js:162:41)
at NormalModule.updateHash (D:\ionic2\amate\node_modules\webpack\lib\NormalModule.js:327:30)
at modules.forEach.m (D:\ionic2\amate\node_modules\webpack\lib\Chunk.js:253:31)
at Array.forEach (native)
at Chunk.updateHash (D:\ionic2\amate\node_modules\webpack\lib\Chunk.js:253:16)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! amate-project@ ionic:serve: `ionic-app-scripts serve "--a" "--v2" "--lab" "--address" "0.0.0.0" "--port" "8101" "--livereload-port" "35730"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the amate-project@ ionic:serve script 'ionic-app-scripts serve "--a" "--v2" "--lab" "--address" "0.0.0.0" "--port" "8101" "--livereload-port" "35730"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the amate-project package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ionic-app-scripts serve "--a" "--v2" "--lab" "--address" "0.0.0.0" "--port" "8101" "--livereload-port" "35730"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs amate-project
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls amate-project
npm ERR! There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2017-04-02T09_03_42_467Z-debug.log
There was an error serving your Ionic application: There was an error with the spawned command: serve