Build fails: Could not find plugin "proposal-numeric-separator"

这个问题太诡异,解决方案如下。

pakcage.json里面添加

{

"name":"****",

"version":"0.0.0",

"scripts": {

"ng":"ng",

"start":"ng serve --host 0.0.0.0 --port 4300 --open",

"build":"ng build",

"test":"ng test",

"lint":"ng lint",

"e2e":"ng e2e"

  },

"bin": {

"mycli":"bin/index.js"

  },

"private":true,

"dependencies": {

"@angular/animations":"~8.2.7",

"@angular/common":"~8.2.7",

"@angular/compiler":"~8.2.7",

"@angular/core":"~8.2.7",

"@angular/forms":"~8.2.7",

"@angular/platform-browser":"~8.2.7",

"@angular/platform-browser-dynamic":"~8.2.7",

"@angular/router":"~8.2.7",

"@babel/plugin-proposal-numeric-separator":"^7.8.3",

"@ckeditor/ckeditor5-angular":"^1.1.0",

"angular-2-local-storage":"^3.0.2",

"angular2-uuid":"^1.1.1",

"core-js":"^3.2.1",

"echarts":"^4.3.0",

"hammerjs":"^2.0.8",

"moment":"^2.24.0",

"ng-zorro-antd":"^8.3.0",

"ng2-ckeditor":"^1.2.6",

"ngx-ckeditor":"^8.0.0",

"ngx-clipboard":"^12.3.1",

"ngx-echarts":"^4.2.1",

"rxjs":"~6.5.3",

"tslib":"^1.10.0",

"zone.js":"~0.9.1"

  },

"devDependencies": {

"@angular-devkit/build-angular":"~0.803.5",

"@angular/cli":"~8.3.5",

"@angular/compiler-cli":"~8.2.7",

"@angular/language-service":"~8.2.7",

"@types/echarts":"^4.1.14",

"@types/jasmine":"~3.4.0",

"@types/jasminewd2":"~2.0.3",

"@types/node":"~12.7.5",

"codelyzer":"^5.0.1",

"install":"^0.13.0",

"jasmine-core":"~3.4.0",

"jasmine-spec-reporter":"~4.2.1",

"karma":"~4.3.0",

"karma-chrome-launcher":"~3.1.0",

"karma-coverage-istanbul-reporter":"~2.1.0",

"karma-jasmine":"~2.0.1",

"karma-jasmine-html-reporter":"^1.4.2",

"protractor":"~5.4.0",

"ts-node":"~8.4.1",

"tslint":"~5.20.0",

"typescript":"3.4.1",

"@babel/compat-data":"~7.8.0"

  }

}



2. 修改 这个文件里面缺少 proposal-numeric-separator

node_modules/@babel/preset-env/lib/available-plugins.js

"use strict";

Object.defineProperty(exports, "__esModule", {

  value: true

});

exports.default = void 0;

var _pluginProposalNumericSeparator = _interopRequireDefault(require("@babel/plugin-proposal-numeric-separator"));

var _pluginSyntaxAsyncGenerators = _interopRequireDefault(require("@babel/plugin-syntax-async-generators"));

var _pluginSyntaxDynamicImport = _interopRequireDefault(require("@babel/plugin-syntax-dynamic-import"));

var _pluginSyntaxJsonStrings = _interopRequireDefault(require("@babel/plugin-syntax-json-strings"));

var _pluginSyntaxNullishCoalescingOperator = _interopRequireDefault(require("@babel/plugin-syntax-nullish-coalescing-operator"));

var _pluginSyntaxObjectRestSpread = _interopRequireDefault(require("@babel/plugin-syntax-object-rest-spread"));

var _pluginSyntaxOptionalCatchBinding = _interopRequireDefault(require("@babel/plugin-syntax-optional-catch-binding"));

var _pluginSyntaxOptionalChaining = _interopRequireDefault(require("@babel/plugin-syntax-optional-chaining"));

var _pluginSyntaxTopLevelAwait = _interopRequireDefault(require("@babel/plugin-syntax-top-level-await"));

var _pluginProposalAsyncGeneratorFunctions = _interopRequireDefault(require("@babel/plugin-proposal-async-generator-functions"));

var _pluginProposalDynamicImport = _interopRequireDefault(require("@babel/plugin-proposal-dynamic-import"));

var _pluginProposalJsonStrings = _interopRequireDefault(require("@babel/plugin-proposal-json-strings"));

var _pluginProposalNullishCoalescingOperator = _interopRequireDefault(require("@babel/plugin-proposal-nullish-coalescing-operator"));

var _pluginProposalObjectRestSpread = _interopRequireDefault(require("@babel/plugin-proposal-object-rest-spread"));

var _pluginProposalOptionalCatchBinding = _interopRequireDefault(require("@babel/plugin-proposal-optional-catch-binding"));

var _pluginProposalOptionalChaining = _interopRequireDefault(require("@babel/plugin-proposal-optional-chaining"));

var _pluginProposalUnicodePropertyRegex = _interopRequireDefault(require("@babel/plugin-proposal-unicode-property-regex"));

var _pluginTransformAsyncToGenerator = _interopRequireDefault(require("@babel/plugin-transform-async-to-generator"));

var _pluginTransformArrowFunctions = _interopRequireDefault(require("@babel/plugin-transform-arrow-functions"));

var _pluginTransformBlockScopedFunctions = _interopRequireDefault(require("@babel/plugin-transform-block-scoped-functions"));

var _pluginTransformBlockScoping = _interopRequireDefault(require("@babel/plugin-transform-block-scoping"));

var _pluginTransformClasses = _interopRequireDefault(require("@babel/plugin-transform-classes"));

var _pluginTransformComputedProperties = _interopRequireDefault(require("@babel/plugin-transform-computed-properties"));

var _pluginTransformDestructuring = _interopRequireDefault(require("@babel/plugin-transform-destructuring"));

var _pluginTransformDotallRegex = _interopRequireDefault(require("@babel/plugin-transform-dotall-regex"));

var _pluginTransformDuplicateKeys = _interopRequireDefault(require("@babel/plugin-transform-duplicate-keys"));

var _pluginTransformExponentiationOperator = _interopRequireDefault(require("@babel/plugin-transform-exponentiation-operator"));

var _pluginTransformForOf = _interopRequireDefault(require("@babel/plugin-transform-for-of"));

var _pluginTransformFunctionName = _interopRequireDefault(require("@babel/plugin-transform-function-name"));

var _pluginTransformLiterals = _interopRequireDefault(require("@babel/plugin-transform-literals"));

var _pluginTransformMemberExpressionLiterals = _interopRequireDefault(require("@babel/plugin-transform-member-expression-literals"));

var _pluginTransformModulesAmd = _interopRequireDefault(require("@babel/plugin-transform-modules-amd"));

var _pluginTransformModulesCommonjs = _interopRequireDefault(require("@babel/plugin-transform-modules-commonjs"));

var _pluginTransformModulesSystemjs = _interopRequireDefault(require("@babel/plugin-transform-modules-systemjs"));

var _pluginTransformModulesUmd = _interopRequireDefault(require("@babel/plugin-transform-modules-umd"));

var _pluginTransformNamedCapturingGroupsRegex = _interopRequireDefault(require("@babel/plugin-transform-named-capturing-groups-regex"));

var _pluginTransformNewTarget = _interopRequireDefault(require("@babel/plugin-transform-new-target"));

var _pluginTransformObjectSuper = _interopRequireDefault(require("@babel/plugin-transform-object-super"));

var _pluginTransformParameters = _interopRequireDefault(require("@babel/plugin-transform-parameters"));

var _pluginTransformPropertyLiterals = _interopRequireDefault(require("@babel/plugin-transform-property-literals"));

var _pluginTransformRegenerator = _interopRequireDefault(require("@babel/plugin-transform-regenerator"));

var _pluginTransformReservedWords = _interopRequireDefault(require("@babel/plugin-transform-reserved-words"));

var _pluginTransformShorthandProperties = _interopRequireDefault(require("@babel/plugin-transform-shorthand-properties"));

var _pluginTransformSpread = _interopRequireDefault(require("@babel/plugin-transform-spread"));

var _pluginTransformStickyRegex = _interopRequireDefault(require("@babel/plugin-transform-sticky-regex"));

var _pluginTransformTemplateLiterals = _interopRequireDefault(require("@babel/plugin-transform-template-literals"));

var _pluginTransformTypeofSymbol = _interopRequireDefault(require("@babel/plugin-transform-typeof-symbol"));

var _pluginTransformUnicodeRegex = _interopRequireDefault(require("@babel/plugin-transform-unicode-regex"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var _default = {

  "proposal-numeric-separator": _pluginProposalNumericSeparator.default,

  "proposal-async-generator-functions": _pluginProposalAsyncGeneratorFunctions.default,

  "proposal-dynamic-import": _pluginProposalDynamicImport.default,

  "proposal-json-strings": _pluginProposalJsonStrings.default,

  "proposal-nullish-coalescing-operator": _pluginProposalNullishCoalescingOperator.default,

  "proposal-object-rest-spread": _pluginProposalObjectRestSpread.default,

  "proposal-optional-catch-binding": _pluginProposalOptionalCatchBinding.default,

  "proposal-optional-chaining": _pluginProposalOptionalChaining.default,

  "proposal-unicode-property-regex": _pluginProposalUnicodePropertyRegex.default,

  "syntax-async-generators": _pluginSyntaxAsyncGenerators.default,

  "syntax-dynamic-import": _pluginSyntaxDynamicImport.default,

  "syntax-json-strings": _pluginSyntaxJsonStrings.default,

  "syntax-nullish-coalescing-operator": _pluginSyntaxNullishCoalescingOperator.default,

  "syntax-object-rest-spread": _pluginSyntaxObjectRestSpread.default,

  "syntax-optional-catch-binding": _pluginSyntaxOptionalCatchBinding.default,

  "syntax-optional-chaining": _pluginSyntaxOptionalChaining.default,

  "syntax-top-level-await": _pluginSyntaxTopLevelAwait.default,

  "transform-arrow-functions": _pluginTransformArrowFunctions.default,

  "transform-async-to-generator": _pluginTransformAsyncToGenerator.default,

  "transform-block-scoped-functions": _pluginTransformBlockScopedFunctions.default,

  "transform-block-scoping": _pluginTransformBlockScoping.default,

  "transform-classes": _pluginTransformClasses.default,

  "transform-computed-properties": _pluginTransformComputedProperties.default,

  "transform-destructuring": _pluginTransformDestructuring.default,

  "transform-dotall-regex": _pluginTransformDotallRegex.default,

  "transform-duplicate-keys": _pluginTransformDuplicateKeys.default,

  "transform-exponentiation-operator": _pluginTransformExponentiationOperator.default,

  "transform-for-of": _pluginTransformForOf.default,

  "transform-function-name": _pluginTransformFunctionName.default,

  "transform-literals": _pluginTransformLiterals.default,

  "transform-member-expression-literals": _pluginTransformMemberExpressionLiterals.default,

  "transform-modules-amd": _pluginTransformModulesAmd.default,

  "transform-modules-commonjs": _pluginTransformModulesCommonjs.default,

  "transform-modules-systemjs": _pluginTransformModulesSystemjs.default,

  "transform-modules-umd": _pluginTransformModulesUmd.default,

  "transform-named-capturing-groups-regex": _pluginTransformNamedCapturingGroupsRegex.default,

  "transform-new-target": _pluginTransformNewTarget.default,

  "transform-object-super": _pluginTransformObjectSuper.default,

  "transform-parameters": _pluginTransformParameters.default,

  "transform-property-literals": _pluginTransformPropertyLiterals.default,

  "transform-regenerator": _pluginTransformRegenerator.default,

  "transform-reserved-words": _pluginTransformReservedWords.default,

  "transform-shorthand-properties": _pluginTransformShorthandProperties.default,

  "transform-spread": _pluginTransformSpread.default,

  "transform-sticky-regex": _pluginTransformStickyRegex.default,

  "transform-template-literals": _pluginTransformTemplateLiterals.default,

  "transform-typeof-symbol": _pluginTransformTypeofSymbol.default,

  "transform-unicode-regex": _pluginTransformUnicodeRegex.default

};

exports.default = _default;

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 216,258评论 6 498
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,335评论 3 392
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 162,225评论 0 353
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,126评论 1 292
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,140评论 6 388
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,098评论 1 295
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,018评论 3 417
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,857评论 0 273
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,298评论 1 310
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,518评论 2 332
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,678评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,400评论 5 343
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 40,993评论 3 325
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,638评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,801评论 1 268
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,661评论 2 368
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,558评论 2 352

推荐阅读更多精彩内容

  • Summary 对于Babel V7以后,一些包的理解 @babel/core babel 核心包,编译器。提供转...
    fancy_coder阅读 4,015评论 0 0
  • es7 新特性 npx babel-upgrade --write 覆盖 preset-stage-0 配置 ba...
    FConfidence阅读 1,021评论 0 0
  • babel官网 babel 介绍 Babel 是一个通用的多用途 JavaScript 编译器。通过 Babel ...
    锋享前端阅读 1,817评论 0 10
  • 杰克·韦尔奇:绩效管理的最终目标并非仅使员工达到期望的绩效,而是使他们出于意愿而愿意付出超越职责的努力。 前...
    Z艳辉阅读 885评论 0 3
  • 节来大雪涌寒潮, 冬到江南草木凋。 一时难抵朔风硬, 美人不计穿旧袍。 山寒水瘦鹭孤飞, 窄巷宽街枝不垂。 石桥更...
    诺鸫竹隐阅读 1,652评论 34 57