![](/img/trans.png)
[英]Connection to mysql database failed while trying to run ionic project on android
[英]Problem while trying to start an ionic project
我剛剛按照 ionic 框架網站上的說明安裝了 npm 和 ionic,一旦我開始一個新項目,我就會收到這些錯誤。 我嘗試了許多在線解決方案,但似乎都沒有。
npm WARN deprecated tslint@6.1.2: TSLint has been deprecated in favor
of ESLint. Please see https://github.com/palantir/tslint/issues/4534 for more information.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm ERR! Unexpected end of JSON input while parsing near '...a512-0baf1FhCp16LhN+x'
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Michel\AppData\Roaming\npm-cache\_logs\2020-06-07T00_38_37_180Z-debug.log
以管理員身份打開 Windows Powershell。 然后運行命令:
npm cache clean --force
然后像往常一樣再次安裝離子:
ionic start
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.