npm run build error when it’s executed

Do you want to request a feature or report a bug?

A feature.

What is the current behavior?
Error when i execute “npm run build” in cmd
If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?
i get this error: http://imgur.com/a/FbOzp
If this is a feature request, what is motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.
W8 and the newest version of node.js and webpack.

This is npm-debug file:
0 info it worked if it ends with ok
1 verbose cli [ ‘C:\nodejs\node.exe’,
1 verbose cli ‘C:\nodejs\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘run’,
1 verbose cli ‘build’ ]
2 info using npm@3.10.10
3 info using node@v6.10.3
4 verbose run-script [ ‘prebuild’, ‘build’, ‘postbuild’ ]
5 info lifecycle es6@1.0.0prebuild: es6@1.0.0
6 silly lifecycle es6@1.0.0
prebuild: no script for prebuild, continuing
7 info lifecycle es6@1.0.0build: es6@1.0.0
8 verbose lifecycle es6@1.0.0
build: unsafe-perm in lifecycle true
9 verbose lifecycle es6@1.0.0build: PATH: C:\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\Cosmin\es6\node_modules.bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;D:\programe\node;C:\Program Files (x86)\Skype\Phone;C:\nodejs;C:\Program Files\nodejs;C:\Users\Cosmin\AppData\Roaming\npm
10 verbose lifecycle es6@1.0.0
build: CWD: C:\Users\Cosmin\es6
11 silly lifecycle es6@1.0.0build: Args: [ ‘/d /s /c’, ‘webpack’ ]
12 silly lifecycle es6@1.0.0
build: Returned: code: 1 signal: null
13 info lifecycle es6@1.0.0~build: Failed to exec build script
14 verbose stack Error: es6@1.0.0 build: webpack
14 verbose stack Exit status 1
14 verbose stack at EventEmitter. (C:\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess. (C:\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:886:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid es6@1.0.0
16 verbose cwd C:\Users\Cosmin\es6
17 error Windows_NT 6.3.9600
18 error argv “C:\nodejs\node.exe” “C:\nodejs\node_modules\npm\bin\npm-cli.js” “run” “build”
19 error node v6.10.3
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error es6@1.0.0 build: webpack
22 error Exit status 1
23 error Failed at the es6@1.0.0 build script ‘webpack’.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the es6 package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error webpack
23 error You can get information on how to open an issue for this project with:
23 error npm bugs es6
23 error Or if that isn’t available, you can get their info via:
23 error npm owner ls es6
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

Author: Fantashit

1 thought on “npm run build error when it’s executed

  1. try changing in the webpack.config.js to:
    module.exports = { entry: ['./app/index.js'], output: { path: __dirname + '/build', filename: 'bundle.js' } }
    npm run build —- worked for me.

Comments are closed.