Npm run build fails throwing error code ELIFECYCLE











up vote
0
down vote

favorite












I want to build the React JS application I wrote, but when I type the command "npm run build", I get this error: error. I searched for the error on the Internet but couldn't find any solution to get the build creation working. Please help. I have provided the necessary code below. Any further code requirements be posted in the comments. Thanks in advance :)



Error Log:



    0 info it worked if it ends with ok
1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build' ]
2 info using npm@6.4.1
3 info using node@v8.12.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle edaku@0.1.0~prebuild: edaku@0.1.0
6 info lifecycle edaku@0.1.0~build: edaku@0.1.0
7 verbose lifecycle edaku@0.1.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle edaku@0.1.0~build: PATH: C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclenode-gyp-bin;C:UsersShllokaDesktopedakunode_modules.bin;C:Program Files (x86)InteliCLS Client;C:Program FilesInteliCLS Client;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsIPT;C:Program FilesIntelIntel(R) Management Engine ComponentsIPT;C:WINDOWSSystem32OpenSSH;C:Program Filesnodejs;C:Program FilesGitcmd;C:UsersShllokaAppDataLocalProgramsPythonPython37Scripts;C:UsersShllokaAppDataLocalProgramsPythonPython37;C:Program FilesJavajdk1.8.0_162bin;C:UsersShllokaDesktopcurl-7.59.0-win64-mingwbin;C:UsersShllokaAppDataLocalMicrosoftWindowsApps;C:UsersShllokaAppDataRoamingnpm
9 verbose lifecycle edaku@0.1.0~build: CWD: C:UsersShllokaDesktopedaku
10 silly lifecycle edaku@0.1.0~build: Args: [ '/d /s /c', 'react-scripts build' ]
11 silly lifecycle edaku@0.1.0~build: Returned: code: 1 signal: null
12 info lifecycle edaku@0.1.0~build: Failed to exec build script
13 verbose stack Error: edaku@0.1.0 build: `react-scripts build`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecycleindex.js:301:16)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at EventEmitter.emit (events.js:214:7)
13 verbose stack at ChildProcess.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclelibspawn.js:55:14)
13 verbose stack at emitTwo (events.js:126:13)
13 verbose stack at ChildProcess.emit (events.js:214:7)
13 verbose stack at maybeClose (internal/child_process.js:915:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
14 verbose pkgid edaku@0.1.0
15 verbose cwd C:UsersShllokaDesktopedaku
16 verbose Windows_NT 10.0.17134
17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
18 verbose node v8.12.0
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error edaku@0.1.0 build: `react-scripts build`
22 error Exit status 1
23 error Failed at the edaku@0.1.0 build script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]


package.json:



{
"name": "edaku",
"version": "0.1.0",
"private": true,
"dependencies": {
"@dvsl/zoomcharts": "^1.18.9-nightly",
"aos": "^3.0.0-beta.6",
"apexcharts": "^2.1.9",
"jquery": "^3.3.1",
"nodemailer": "^4.6.8",
"raphael": "^2.2.7",
"react": "^16.5.2",
"react-apexcharts": "^1.0.10",
"react-dom": "^16.5.2",
"react-graph-vis": "^1.0.2",
"react-mail-form": "^1.0.1",
"react-modal": "^3.6.1",
"react-modal-dialog": "^4.0.7",
"react-particle-animation": "^1.0.1",
"react-router-dom": "^4.3.1",
"react-scripts": "2.0.4",
"react-transition-group": "^1.2.1",
"reactjs-popup": "^1.3.0",
"typed.js": "^2.0.9",
"typeit": "^5.10.7",
"typewriter-effect": "^2.4.6"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
],
"devDependencies": {
"webpack-cli": "^3.1.2"
}
}


webpack.config.js:



import ExtractTextPlugin from 'extract-text-webpack-plugin';
import OptimizeCssAssetsPlugin from '../../../src/';

module.exports = {
entry: './index',
module: {
rules: [
{
test: /.css$/,
use: ExtractTextPlugin.extract({
fallback: { loader: 'style-loader' },
use: {
loader: 'css-loader',
options: { minimize: true }
}
})
},
],
},
plugins: [
new ExtractTextPlugin('file.css'),
new OptimizeCssAssetsPlugin()
],
};









share|improve this question


























    up vote
    0
    down vote

    favorite












    I want to build the React JS application I wrote, but when I type the command "npm run build", I get this error: error. I searched for the error on the Internet but couldn't find any solution to get the build creation working. Please help. I have provided the necessary code below. Any further code requirements be posted in the comments. Thanks in advance :)



    Error Log:



        0 info it worked if it ends with ok
    1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
    1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
    1 verbose cli 'run',
    1 verbose cli 'build' ]
    2 info using npm@6.4.1
    3 info using node@v8.12.0
    4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
    5 info lifecycle edaku@0.1.0~prebuild: edaku@0.1.0
    6 info lifecycle edaku@0.1.0~build: edaku@0.1.0
    7 verbose lifecycle edaku@0.1.0~build: unsafe-perm in lifecycle true
    8 verbose lifecycle edaku@0.1.0~build: PATH: C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclenode-gyp-bin;C:UsersShllokaDesktopedakunode_modules.bin;C:Program Files (x86)InteliCLS Client;C:Program FilesInteliCLS Client;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsIPT;C:Program FilesIntelIntel(R) Management Engine ComponentsIPT;C:WINDOWSSystem32OpenSSH;C:Program Filesnodejs;C:Program FilesGitcmd;C:UsersShllokaAppDataLocalProgramsPythonPython37Scripts;C:UsersShllokaAppDataLocalProgramsPythonPython37;C:Program FilesJavajdk1.8.0_162bin;C:UsersShllokaDesktopcurl-7.59.0-win64-mingwbin;C:UsersShllokaAppDataLocalMicrosoftWindowsApps;C:UsersShllokaAppDataRoamingnpm
    9 verbose lifecycle edaku@0.1.0~build: CWD: C:UsersShllokaDesktopedaku
    10 silly lifecycle edaku@0.1.0~build: Args: [ '/d /s /c', 'react-scripts build' ]
    11 silly lifecycle edaku@0.1.0~build: Returned: code: 1 signal: null
    12 info lifecycle edaku@0.1.0~build: Failed to exec build script
    13 verbose stack Error: edaku@0.1.0 build: `react-scripts build`
    13 verbose stack Exit status 1
    13 verbose stack at EventEmitter.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecycleindex.js:301:16)
    13 verbose stack at emitTwo (events.js:126:13)
    13 verbose stack at EventEmitter.emit (events.js:214:7)
    13 verbose stack at ChildProcess.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclelibspawn.js:55:14)
    13 verbose stack at emitTwo (events.js:126:13)
    13 verbose stack at ChildProcess.emit (events.js:214:7)
    13 verbose stack at maybeClose (internal/child_process.js:915:16)
    13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
    14 verbose pkgid edaku@0.1.0
    15 verbose cwd C:UsersShllokaDesktopedaku
    16 verbose Windows_NT 10.0.17134
    17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
    18 verbose node v8.12.0
    19 verbose npm v6.4.1
    20 error code ELIFECYCLE
    21 error errno 1
    22 error edaku@0.1.0 build: `react-scripts build`
    22 error Exit status 1
    23 error Failed at the edaku@0.1.0 build script.
    23 error This is probably not a problem with npm. There is likely additional logging output above.
    24 verbose exit [ 1, true ]


    package.json:



    {
    "name": "edaku",
    "version": "0.1.0",
    "private": true,
    "dependencies": {
    "@dvsl/zoomcharts": "^1.18.9-nightly",
    "aos": "^3.0.0-beta.6",
    "apexcharts": "^2.1.9",
    "jquery": "^3.3.1",
    "nodemailer": "^4.6.8",
    "raphael": "^2.2.7",
    "react": "^16.5.2",
    "react-apexcharts": "^1.0.10",
    "react-dom": "^16.5.2",
    "react-graph-vis": "^1.0.2",
    "react-mail-form": "^1.0.1",
    "react-modal": "^3.6.1",
    "react-modal-dialog": "^4.0.7",
    "react-particle-animation": "^1.0.1",
    "react-router-dom": "^4.3.1",
    "react-scripts": "2.0.4",
    "react-transition-group": "^1.2.1",
    "reactjs-popup": "^1.3.0",
    "typed.js": "^2.0.9",
    "typeit": "^5.10.7",
    "typewriter-effect": "^2.4.6"
    },
    "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
    },
    "eslintConfig": {
    "extends": "react-app"
    },
    "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
    ],
    "devDependencies": {
    "webpack-cli": "^3.1.2"
    }
    }


    webpack.config.js:



    import ExtractTextPlugin from 'extract-text-webpack-plugin';
    import OptimizeCssAssetsPlugin from '../../../src/';

    module.exports = {
    entry: './index',
    module: {
    rules: [
    {
    test: /.css$/,
    use: ExtractTextPlugin.extract({
    fallback: { loader: 'style-loader' },
    use: {
    loader: 'css-loader',
    options: { minimize: true }
    }
    })
    },
    ],
    },
    plugins: [
    new ExtractTextPlugin('file.css'),
    new OptimizeCssAssetsPlugin()
    ],
    };









    share|improve this question
























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I want to build the React JS application I wrote, but when I type the command "npm run build", I get this error: error. I searched for the error on the Internet but couldn't find any solution to get the build creation working. Please help. I have provided the necessary code below. Any further code requirements be posted in the comments. Thanks in advance :)



      Error Log:



          0 info it worked if it ends with ok
      1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
      1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
      1 verbose cli 'run',
      1 verbose cli 'build' ]
      2 info using npm@6.4.1
      3 info using node@v8.12.0
      4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
      5 info lifecycle edaku@0.1.0~prebuild: edaku@0.1.0
      6 info lifecycle edaku@0.1.0~build: edaku@0.1.0
      7 verbose lifecycle edaku@0.1.0~build: unsafe-perm in lifecycle true
      8 verbose lifecycle edaku@0.1.0~build: PATH: C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclenode-gyp-bin;C:UsersShllokaDesktopedakunode_modules.bin;C:Program Files (x86)InteliCLS Client;C:Program FilesInteliCLS Client;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsIPT;C:Program FilesIntelIntel(R) Management Engine ComponentsIPT;C:WINDOWSSystem32OpenSSH;C:Program Filesnodejs;C:Program FilesGitcmd;C:UsersShllokaAppDataLocalProgramsPythonPython37Scripts;C:UsersShllokaAppDataLocalProgramsPythonPython37;C:Program FilesJavajdk1.8.0_162bin;C:UsersShllokaDesktopcurl-7.59.0-win64-mingwbin;C:UsersShllokaAppDataLocalMicrosoftWindowsApps;C:UsersShllokaAppDataRoamingnpm
      9 verbose lifecycle edaku@0.1.0~build: CWD: C:UsersShllokaDesktopedaku
      10 silly lifecycle edaku@0.1.0~build: Args: [ '/d /s /c', 'react-scripts build' ]
      11 silly lifecycle edaku@0.1.0~build: Returned: code: 1 signal: null
      12 info lifecycle edaku@0.1.0~build: Failed to exec build script
      13 verbose stack Error: edaku@0.1.0 build: `react-scripts build`
      13 verbose stack Exit status 1
      13 verbose stack at EventEmitter.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecycleindex.js:301:16)
      13 verbose stack at emitTwo (events.js:126:13)
      13 verbose stack at EventEmitter.emit (events.js:214:7)
      13 verbose stack at ChildProcess.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclelibspawn.js:55:14)
      13 verbose stack at emitTwo (events.js:126:13)
      13 verbose stack at ChildProcess.emit (events.js:214:7)
      13 verbose stack at maybeClose (internal/child_process.js:915:16)
      13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
      14 verbose pkgid edaku@0.1.0
      15 verbose cwd C:UsersShllokaDesktopedaku
      16 verbose Windows_NT 10.0.17134
      17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
      18 verbose node v8.12.0
      19 verbose npm v6.4.1
      20 error code ELIFECYCLE
      21 error errno 1
      22 error edaku@0.1.0 build: `react-scripts build`
      22 error Exit status 1
      23 error Failed at the edaku@0.1.0 build script.
      23 error This is probably not a problem with npm. There is likely additional logging output above.
      24 verbose exit [ 1, true ]


      package.json:



      {
      "name": "edaku",
      "version": "0.1.0",
      "private": true,
      "dependencies": {
      "@dvsl/zoomcharts": "^1.18.9-nightly",
      "aos": "^3.0.0-beta.6",
      "apexcharts": "^2.1.9",
      "jquery": "^3.3.1",
      "nodemailer": "^4.6.8",
      "raphael": "^2.2.7",
      "react": "^16.5.2",
      "react-apexcharts": "^1.0.10",
      "react-dom": "^16.5.2",
      "react-graph-vis": "^1.0.2",
      "react-mail-form": "^1.0.1",
      "react-modal": "^3.6.1",
      "react-modal-dialog": "^4.0.7",
      "react-particle-animation": "^1.0.1",
      "react-router-dom": "^4.3.1",
      "react-scripts": "2.0.4",
      "react-transition-group": "^1.2.1",
      "reactjs-popup": "^1.3.0",
      "typed.js": "^2.0.9",
      "typeit": "^5.10.7",
      "typewriter-effect": "^2.4.6"
      },
      "scripts": {
      "start": "react-scripts start",
      "build": "react-scripts build",
      "test": "react-scripts test",
      "eject": "react-scripts eject"
      },
      "eslintConfig": {
      "extends": "react-app"
      },
      "browserslist": [
      ">0.2%",
      "not dead",
      "not ie <= 11",
      "not op_mini all"
      ],
      "devDependencies": {
      "webpack-cli": "^3.1.2"
      }
      }


      webpack.config.js:



      import ExtractTextPlugin from 'extract-text-webpack-plugin';
      import OptimizeCssAssetsPlugin from '../../../src/';

      module.exports = {
      entry: './index',
      module: {
      rules: [
      {
      test: /.css$/,
      use: ExtractTextPlugin.extract({
      fallback: { loader: 'style-loader' },
      use: {
      loader: 'css-loader',
      options: { minimize: true }
      }
      })
      },
      ],
      },
      plugins: [
      new ExtractTextPlugin('file.css'),
      new OptimizeCssAssetsPlugin()
      ],
      };









      share|improve this question













      I want to build the React JS application I wrote, but when I type the command "npm run build", I get this error: error. I searched for the error on the Internet but couldn't find any solution to get the build creation working. Please help. I have provided the necessary code below. Any further code requirements be posted in the comments. Thanks in advance :)



      Error Log:



          0 info it worked if it ends with ok
      1 verbose cli [ 'C:\Program Files\nodejs\node.exe',
      1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js',
      1 verbose cli 'run',
      1 verbose cli 'build' ]
      2 info using npm@6.4.1
      3 info using node@v8.12.0
      4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
      5 info lifecycle edaku@0.1.0~prebuild: edaku@0.1.0
      6 info lifecycle edaku@0.1.0~build: edaku@0.1.0
      7 verbose lifecycle edaku@0.1.0~build: unsafe-perm in lifecycle true
      8 verbose lifecycle edaku@0.1.0~build: PATH: C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclenode-gyp-bin;C:UsersShllokaDesktopedakunode_modules.bin;C:Program Files (x86)InteliCLS Client;C:Program FilesInteliCLS Client;C:WINDOWSsystem32;C:WINDOWS;C:WINDOWSSystem32Wbem;C:WINDOWSSystem32WindowsPowerShellv1.0;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsDAL;C:Program FilesIntelIntel(R) Management Engine ComponentsDAL;C:Program Files (x86)IntelIntel(R) Management Engine ComponentsIPT;C:Program FilesIntelIntel(R) Management Engine ComponentsIPT;C:WINDOWSSystem32OpenSSH;C:Program Filesnodejs;C:Program FilesGitcmd;C:UsersShllokaAppDataLocalProgramsPythonPython37Scripts;C:UsersShllokaAppDataLocalProgramsPythonPython37;C:Program FilesJavajdk1.8.0_162bin;C:UsersShllokaDesktopcurl-7.59.0-win64-mingwbin;C:UsersShllokaAppDataLocalMicrosoftWindowsApps;C:UsersShllokaAppDataRoamingnpm
      9 verbose lifecycle edaku@0.1.0~build: CWD: C:UsersShllokaDesktopedaku
      10 silly lifecycle edaku@0.1.0~build: Args: [ '/d /s /c', 'react-scripts build' ]
      11 silly lifecycle edaku@0.1.0~build: Returned: code: 1 signal: null
      12 info lifecycle edaku@0.1.0~build: Failed to exec build script
      13 verbose stack Error: edaku@0.1.0 build: `react-scripts build`
      13 verbose stack Exit status 1
      13 verbose stack at EventEmitter.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecycleindex.js:301:16)
      13 verbose stack at emitTwo (events.js:126:13)
      13 verbose stack at EventEmitter.emit (events.js:214:7)
      13 verbose stack at ChildProcess.<anonymous> (C:Program Filesnodejsnode_modulesnpmnode_modulesnpm-lifecyclelibspawn.js:55:14)
      13 verbose stack at emitTwo (events.js:126:13)
      13 verbose stack at ChildProcess.emit (events.js:214:7)
      13 verbose stack at maybeClose (internal/child_process.js:915:16)
      13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
      14 verbose pkgid edaku@0.1.0
      15 verbose cwd C:UsersShllokaDesktopedaku
      16 verbose Windows_NT 10.0.17134
      17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
      18 verbose node v8.12.0
      19 verbose npm v6.4.1
      20 error code ELIFECYCLE
      21 error errno 1
      22 error edaku@0.1.0 build: `react-scripts build`
      22 error Exit status 1
      23 error Failed at the edaku@0.1.0 build script.
      23 error This is probably not a problem with npm. There is likely additional logging output above.
      24 verbose exit [ 1, true ]


      package.json:



      {
      "name": "edaku",
      "version": "0.1.0",
      "private": true,
      "dependencies": {
      "@dvsl/zoomcharts": "^1.18.9-nightly",
      "aos": "^3.0.0-beta.6",
      "apexcharts": "^2.1.9",
      "jquery": "^3.3.1",
      "nodemailer": "^4.6.8",
      "raphael": "^2.2.7",
      "react": "^16.5.2",
      "react-apexcharts": "^1.0.10",
      "react-dom": "^16.5.2",
      "react-graph-vis": "^1.0.2",
      "react-mail-form": "^1.0.1",
      "react-modal": "^3.6.1",
      "react-modal-dialog": "^4.0.7",
      "react-particle-animation": "^1.0.1",
      "react-router-dom": "^4.3.1",
      "react-scripts": "2.0.4",
      "react-transition-group": "^1.2.1",
      "reactjs-popup": "^1.3.0",
      "typed.js": "^2.0.9",
      "typeit": "^5.10.7",
      "typewriter-effect": "^2.4.6"
      },
      "scripts": {
      "start": "react-scripts start",
      "build": "react-scripts build",
      "test": "react-scripts test",
      "eject": "react-scripts eject"
      },
      "eslintConfig": {
      "extends": "react-app"
      },
      "browserslist": [
      ">0.2%",
      "not dead",
      "not ie <= 11",
      "not op_mini all"
      ],
      "devDependencies": {
      "webpack-cli": "^3.1.2"
      }
      }


      webpack.config.js:



      import ExtractTextPlugin from 'extract-text-webpack-plugin';
      import OptimizeCssAssetsPlugin from '../../../src/';

      module.exports = {
      entry: './index',
      module: {
      rules: [
      {
      test: /.css$/,
      use: ExtractTextPlugin.extract({
      fallback: { loader: 'style-loader' },
      use: {
      loader: 'css-loader',
      options: { minimize: true }
      }
      })
      },
      ],
      },
      plugins: [
      new ExtractTextPlugin('file.css'),
      new OptimizeCssAssetsPlugin()
      ],
      };






      reactjs npm build






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 5 at 17:53









      mdhrumil

      101115




      101115





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53159655%2fnpm-run-build-fails-throwing-error-code-elifecycle%23new-answer', 'question_page');
          }
          );

          Post as a guest





































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53159655%2fnpm-run-build-fails-throwing-error-code-elifecycle%23new-answer', 'question_page');
          }
          );

          Post as a guest




















































































          這個網誌中的熱門文章

          Tangent Lines Diagram Along Smooth Curve

          Yusuf al-Mu'taman ibn Hud

          Zucchini