簡體   English   中英

部署ionic應用程序時如何解決“運行子進程ng時發生錯誤”?

[英]How can I resolve "An error occurred while running subprocess ng" when deploying ionic app?

我最近制作了一個離子應用程序,當我嘗試使用它進行部署時

ionic cordova build android

我收到以下錯誤:

An unhandled exception occurred: [BABEL] C:\Users\dipes\OneDrive\Documents\GitHub\demoapp\www\focus-visible-15ada7f7-js-es2015.js: Could not find plugin "proposal-numeric-separator". Ensure there is an entry in ./available-plugins.js for it. (While processing: "C:\\Users\\dipes\\OneDrive\\Documents\\GitHub\\demoapp\\node_modules\\@babel\\preset-env\\lib\\index.js")
See "C:\Users\dipes\AppData\Local\Temp\ng-8Jt401\angular-errors.log" for further details.
[ERROR] An error occurred while running subprocess ng.

在日志文件中,我得到

    [error] Error: [BABEL] C:\Users\dipes\OneDrive\Documents\GitHub\demoapp\www\focus-visible-15ada7f7-js-es2015.js: Could not find plugin "proposal-numeric-separator". Ensure there is an entry in ./available-plugins.js for it. (While processing: "C:\\Users\\dipes\\OneDrive\\Documents\\GitHub\\demoapp\\node_modules\\@babel\\preset-env\\lib\\index.js")
    at getPlugin (C:\Users\dipes\OneDrive\Documents\GitHub\demoapp\node_modules\@babel\preset-env\lib\index.js:67:11)
    at C:\Users\dipes\OneDrive\Documents\GitHub\demoapp\node_modules\@babel\preset-env\lib\index.js:258:62
    at Array.map (<anonymous>)
    at C:\Users\dipes\OneDrive\Documents\GitHub\demoapp\node_modules\@babel\preset-env\lib\index.js:258:43
    at C:\Users\dipes\OneDrive\Documents\GitHub\demoapp\node_modules\@babel\helper-plugin-utils\lib\index.js:19:12
    at C:\Users\dipes\OneDrive\Documents\GitHub\demoapp\node_modules\@babel\core\lib\config\full.js:179:14
    at Generator.next (<anonymous>)
    at Function.<anonymous> (C:\Users\dipes\OneDrive\Documents\GitHub\demoapp\node_modules\@babel\core\lib\gensync-utils\async.js:26:3)
    at Generator.next (<anonymous>)
    at step (C:\Users\dipes\OneDrive\Documents\GitHub\demoapp\node_modules\gensync\index.js:254:32)
    at evaluateAsync (C:\Users\dipes\OneDrive\Documents\GitHub\demoapp\node_modules\gensync\index.js:284:5)
    at Function.errback (C:\Users\dipes\OneDrive\Documents\GitHub\demoapp\node_modules\gensync\index.js:108:7)
    at errback (C:\Users\dipes\OneDrive\Documents\GitHub\demoapp\node_modules\@babel\core\lib\gensync-utils\async.js:70:18)
    at async (C:\Users\dipes\OneDrive\Documents\GitHub\demoapp\node_modules\gensync\index.js:183:31)
    at onFirstPause (C:\Users\dipes\OneDrive\Documents\GitHub\demoapp\node_modules\gensync\index.js:209:13)
    at Generator.next (<anonymous>)

刪除此文件

[dir_project_name]/node_modules/@angular/compiler-cli/ngcc/ ngcc_lock_file

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM