0
limingjun2018 created
1 Answer(s)
-
0
There are a few warnings, but they can be restored and compiled normally.
You can delete the node_modules directory yarn.lock or package-lock.json and try again.
PS C:\Users\maliming\Desktop\QADemo\angular> yarn yarn install v1.15.2 [1/4] Resolving packages... [2/4] Fetching packages... info [email protected]: The platform "win32" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning " > @angular/[email protected]" has incorrect peer dependency "zone.js@~0.8.26". warning " > @swimlane/[email protected]" has unmet peer dependency "d3@^4.10.2". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-array@^1.2.1". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-brush@^1.0.4". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-color@^1.0.3". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-force@^1.1.0". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-format@^1.2.0". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-hierarchy@^1.1.5". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-interpolate@^1.1.5". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-scale@^1.0.6". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-selection@^1.1.0". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-shape@^1.2.0". warning " > @swimlane/[email protected]" has unmet peer dependency "d3-time-format@^2.1.0". warning " > @swimlane/[email protected]" has incorrect peer dependency "zone.js@^0.8.26". warning " > [email protected]" has incorrect peer dependency "@angular/[email protected]". warning " > [email protected]" has incorrect peer dependency "@angular/[email protected]". [4/4] Building fresh packages... Done in 51.74s. PS C:\Users\maliming\Desktop\QADemo\angular> npm start > [email protected] start C:\Users\maliming\Desktop\QADemo\angular > ng serve --host 0.0.0.0 --port 4200 WARNING: This is a simple server for use in testing or debugging Angular applications locally. It hasn't been reviewed for security issues. Binding this server to an open connection can result in compromising your application or computer. Using a different host than the one passed to the "--host" flag might result in websocket connection issues. You might need to use "--disableHostCheck" if that's the case. ** Angular Live Development Server is listening on 0.0.0.0:4200, open your browser on http://localhost:4200/ ** Date: 2019-04-18T06:30:15.783Z Hash: 840d0a3d291fd6fa1ef4 Time: 40708ms chunk {0} 0.js, 0.js.map () 18.4 kB [rendered] chunk {1} 1.js, 1.js.map () 658 kB [rendered] chunk {2} 2.js, 2.js.map () 7.83 kB [rendered] chunk {3} 3.js, 3.js.map () 7.71 kB [rendered] chunk {4} 4.js, 4.js.map () 7.64 kB [rendered] //chunk... chunk {1084} 1084.js, 1084.js.map () 12.3 kB [rendered] chunk {account-account-module} account-account-module.js, account-account-module.js.map (account-account-module) 757 kB [rendered] chunk {app-admin-admin-module} app-admin-admin-module.js, app-admin-admin-module.js.map (app-admin-admin-module) 890 kB [rendered] chunk {app-main-main-module} app-main-main-module.js, app-main-main-module.js.map (app-main-main-module) 58.9 kB [rendered] chunk {common} common.js, common.js.map (common) 6.36 kB [rendered] chunk {main} main.js, main.js.map (main) 2.28 MB [initial] [rendered] chunk {polyfills} polyfills.js, polyfills.js.map (polyfills) 441 kB [initial] [rendered] chunk {runtime} runtime.js, runtime.js.map (runtime) 8.9 kB [entry] [rendered] chunk {scripts} scripts.js, scripts.js.map (scripts) 2.24 MB [entry] [rendered] chunk {styles} styles.js, styles.js.map (styles) 1.42 MB [initial] [rendered] chunk {vendor} vendor.js, vendor.js.map (vendor) 11.1 MB [initial] [rendered] i 「wdm」: Compiled successfully.