繁体   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