Advertisement
Guest User

error log terminal NPM

a guest
Sep 11th, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $ npm run build
  2.  
  3. > ffxiv-cmskin@2.2.0 build /Users/lili/Documents/GitHub/cmskin
  4. > ESLINT=none roadhog build && gulp html
  5.  
  6. Build failed: Cannot read property 'compilation' of undefined
  7. TypeError: Cannot read property 'compilation' of undefined
  8.     at ProgressPlugin.apply (/Users/lili/Documents/GitHub/cmskin/node_modules/webpack/lib/ProgressPlugin.js:170:19)
  9.     at Compiler.apply (/Users/lili/Documents/GitHub/cmskin/node_modules/tapable/lib/Tapable.js:375:16)
  10.     at webpack (/Users/lili/Documents/GitHub/cmskin/node_modules/af-webpack/node_modules/webpack/lib/webpack.js:33:19)
  11.     at buildWebpack (/Users/lili/Documents/GitHub/cmskin/node_modules/af-webpack/lib/build.js:100:41)
  12.     at build (/Users/lili/Documents/GitHub/cmskin/node_modules/af-webpack/lib/build.js:117:3)
  13.     at /Users/lili/Documents/GitHub/cmskin/node_modules/roadhog/lib/build.js:77:24
  14.     at new Promise (<anonymous>)
  15.     at Object._default [as default] (/Users/lili/Documents/GitHub/cmskin/node_modules/roadhog/lib/build.js:46:10)
  16.     at Object.<anonymous> (/Users/lili/Documents/GitHub/cmskin/node_modules/roadhog/lib/scripts/build.js:22:28)
  17.     at Module._compile (internal/modules/cjs/loader.js:936:30)
  18.     at Object.Module._extensions..js (internal/modules/cjs/loader.js:947:10)
  19.     at Module.load (internal/modules/cjs/loader.js:790:32)
  20.     at Function.Module._load (internal/modules/cjs/loader.js:703:12)
  21.     at Function.Module.runMain (internal/modules/cjs/loader.js:999:10)
  22.     at internal/main/run_main_module.js:17:11
  23. [00:17:19] Requiring external module @babel/register
  24. /Users/lili/Documents/GitHub/cmskin/node_modules/@babel/core/lib/config/full.js:135
  25.     throw e;
  26.     ^
  27.  
  28. Error: [BABEL] /Users/lili/Documents/GitHub/cmskin/gulpfile.babel.js:
  29. As of v7.0.0-beta.55, we've removed Babel's Stage presets.
  30. Please consider reading our blog post on this decision at
  31. https://babeljs.io/blog/2018/07/27/removing-babels-stage-presets
  32. for more details. TL;DR is that it's more beneficial in the
  33.  long run to explicitly add which proposals to use.
  34.  
  35. For a more automatic migration, we have updated babel-upgrade,
  36. https://github.com/babel/babel-upgrade to do this for you with
  37. "npx babel-upgrade".
  38.  
  39. If you want the same configuration as before:
  40.  
  41. {
  42.  "plugins": [
  43.    // Stage 0
  44.    "@babel/plugin-proposal-function-bind",
  45.  
  46.    // Stage 1
  47.    "@babel/plugin-proposal-export-default-from",
  48.    "@babel/plugin-proposal-logical-assignment-operators",
  49.    ["@babel/plugin-proposal-optional-chaining", { "loose": false }],
  50.    ["@babel/plugin-proposal-pipeline-operator", { "proposal": "minimal" }],
  51.    ["@babel/plugin-proposal-nullish-coalescing-operator", { "loose": false }],
  52.    "@babel/plugin-proposal-do-expressions",
  53.  
  54.    // Stage 2
  55.    ["@babel/plugin-proposal-decorators", { "legacy": true }],
  56.    "@babel/plugin-proposal-function-sent",
  57.    "@babel/plugin-proposal-export-namespace-from",
  58.    "@babel/plugin-proposal-numeric-separator",
  59.    "@babel/plugin-proposal-throw-expressions",
  60.  
  61.    // Stage 3
  62.    "@babel/plugin-syntax-dynamic-import",
  63.    "@babel/plugin-syntax-import-meta",
  64.    ["@babel/plugin-proposal-class-properties", { "loose": false }],
  65.    "@babel/plugin-proposal-json-strings"
  66.  ]
  67. }
  68.  
  69. If you're using the same configuration across many separate projects,
  70. keep in mind that you can also create your own custom presets with
  71. whichever plugins and presets you're looking to use.
  72.  
  73. module.exports = function() {
  74.  return {
  75.    plugins: [
  76.      require("@babel/plugin-syntax-dynamic-import"),
  77.      [require("@babel/plugin-proposal-decorators"), { "legacy": true }],
  78.      [require("@babel/plugin-proposal-class-properties"), { "loose": false }],
  79.    ],
  80.    presets: [
  81.      // ...
  82.    ],
  83.  };
  84. };
  85.   (While processing: "/Users/lili/Documents/GitHub/cmskin/node_modules/@babel/preset-stage-0/lib/index.js")
  86.    at _default (/Users/lili/Documents/GitHub/cmskin/node_modules/@babel/preset-stage-0/lib/index.js:9:9)
  87.    at /Users/lili/Documents/GitHub/cmskin/node_modules/@babel/core/lib/config/full.js:165:14
  88.    at cachedFunction (/Users/lili/Documents/GitHub/cmskin/node_modules/@babel/core/lib/config/caching.js:33:19)
  89.    at loadPresetDescriptor (/Users/lili/Documents/GitHub/cmskin/node_modules/@babel/core/lib/config/full.js:255:36)
  90.    at /Users/lili/Documents/GitHub/cmskin/node_modules/@babel/core/lib/config/full.js:77:21
  91.    at Array.reduce (<anonymous>)
  92.    at recurseDescriptors (/Users/lili/Documents/GitHub/cmskin/node_modules/@babel/core/lib/config/full.js:74:38)
  93.    at loadFullConfig (/Users/lili/Documents/GitHub/cmskin/node_modules/@babel/core/lib/config/full.js:108:6)
  94.    at loadOptions (/Users/lili/Documents/GitHub/cmskin/node_modules/@babel/core/lib/config/index.js:27:36)
  95.    at OptionManager.init (/Users/lili/Documents/GitHub/cmskin/node_modules/@babel/core/lib/index.js:231:36)
  96. npm ERR! code ELIFECYCLE
  97. npm ERR! errno 1
  98. npm ERR! ffxiv-cmskin@2.2.0 build: `ESLINT=none roadhog build && gulp html`
  99. npm ERR! Exit status 1
  100. npm ERR!
  101. npm ERR! Failed at the ffxiv-cmskin@2.2.0 build script.
  102. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  103.  
  104. npm ERR! A complete log of this run can be found in:
  105. npm ERR!    /.npm/_logs/2019-09-11T22_17_20_269Z-debug.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement