Base solution for your next web application
Open Closed

npm run build error #7313


User avatar
0
iamnish created

npm : D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:93 At line:1 char:1

  • npm run create-bundles
  •   + CategoryInfo          : NotSpecified: (D:\OneDrive\sof...i\bin\cli.js:93:String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
    
    
      	throw err;
      			^
    
    

Syntax E rror: D:\O neDrive\soft w a r e
d i a m C o p y
s r c
n i . d i a m . w e b . m v c
b u n d l e s . j s on: Unexpect ed end of JSON input at JSON.parse (<anonymo u s>) at Object.Module._extensions..json ( in terna l /mod u le s/cjs/loa d er.j s:7 95:27)

at M o dule.lo ad ( interna l /modules/cj s / l o a d e r . j s : 6 5 3 : 3 2 )

a t

t r yM o dul eLo a d (interna l/mo du les/ cjs/loader.js:593:1 2 )

at Function. Mo du le._ load (internal/module s/cjs/loader.js:585:3) at Module.req uire ( inte rnal/mod u les/cjs /loader.js:690:17) at require (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\v8-compile-cache\v8-compile-cache.js:161:20) at Object.<anonymous> (D:\OneDrive\software\diamCopy\src\ni.diam.web.mvc\webpack.config.js:6:20) at Module._compile (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\v8-compile-cache\v8-compile-cache.js:192:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:690:17) at require (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\v8-compile-cache\v8-compile-cache.js:161:20) at WEBPACK_OPTIONS (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:116:13) at requireConfig (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:118:6) at D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:125:17 at Array.forEach (<anonymous>) at module.exports (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:123:15) at yargs.parse (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:71:45) at Object.parse (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\yargs\yargs.js:567:18) at D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:49:8 at Object.<anonymous> (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:365:3) at Module._compile (internal/modules/cjs/loader.js:776:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:690:17) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] create-bundles: webpack --progress --profile --watch --mode=development npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] create-bundles script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


14 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Try to delete the node_modules directory and re-execute yarn.

  • User Avatar
    0
    iamnish created

    npm run build

    [email protected] build D:\OneDrive\software\diamCopy\src\ni.diam.web.mvc webpack --mode=production

    npm : D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:93 At line:1 char:1

    • npm run build
    •   + CategoryInfo          : NotSpecified: (D:\OneDrive\sof...i\bin\cli.js:93:String) [], RemoteException
        + FullyQualifiedErrorId : NativeCommandError
      
        			throw err;
        			^
      
      

    SyntaxError: D:\OneDrive\software\diamCopy\src\ni.diam.web.mvc\bundles.json: Unexpected end of JSON input at JSON.parse (<anonymous>) at Object.Module._extensions..json (internal/modules/cjs/loader.js:795:27) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:690:17) at require (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\v8-compile-cache\v8-compile-cache.js:161:20) at Object.<anonymous> (D:\OneDrive\software\diamCopy\src\ni.diam.web.mvc\webpack.config.js:6:20) at Module._compile (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\v8-compile-cache\v8-compile-cache.js:192:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:690:17) at require (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\v8-compile-cache\v8-compile-cache.js:161:20) at WEBPACK_OPTIONS (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:116:13) at requireConfig (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:118:6) at D:\OneDrive\software\diamCopy\src\ni.diam. Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:125:17 at Array.forEach (<anonymous>) at module.exports (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:123:15) at yargs.parse (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:71:45) at Object.parse (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\yargs\yargs.js:567:18) at D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:49:8 at Object.<anonymous> (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:365:3) at Module._compile (internal/modules/cjs/loader.js:776:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:690:17)

    npm

    ERR!

    code ELIFECYCLE

    npm

    ERR!

    errno 1

    npm

    ERR! [email protected] build: webpack --mode=production

    npm

    ERR! Exit status 1

    npm

    ERR!

    npm

    ERR! Failed at the [email protected] build script.

    npm

    ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm

    ERR! A complete log of this run can be found in:

    npm

    ERR! C:\Users\nishi\AppData\Roaming\npm-cache_logs\2019-07-15T17_19_54_441Z-debug.log

  • User Avatar
    0
    iamnish created

    deleted all node modules but still getting errors

  • User Avatar
    0
    alper created
    Support Team

    show your bundles.json(D:\OneDrive\software\diamCopy\src\ni.diam.web.mvc\bundles.json)

  • User Avatar
    0
    iamnish created

    that is resolved .bundle.json has bracket missing .but run create bundles giving further error

    [email protected] create-bundles D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc webpack --progress --profile --watch --mode=development

    D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:93 throw err; ^

    TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined at validateString (internal/validators.js:125:11) at Object.join (path.js:427:7) at fillScriptMappings (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\webpack.config.js:151:39) at Object.<anonymous> (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\webpack.config.js:158:1) at Module._compile (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\v8-compile-cache\v8-compile-cache.js:192:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:690:17) at require (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\v8-compile-cache\v8-compile-cache.js:161:20) at WEBPACK_OPTIONS (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:116:13) at requireConfig (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:118:6) at D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:125:17 at Array.forEach (<anonymous>) at module.exports (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:123:15) at yargs.parse (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:71:45) at Object.parse (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\yargs\yargs.js:567:18) at D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:49:8 at Object.<anonymous> (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:365:3) at Module._compile (internal/modules/cjs/loader.js:776:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:690:17) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack\bin\webpack.js:156:2) at Module._compile (internal/modules/cjs/loader.js:776:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] create-bundles: webpack --progress --profile --watch --mode=development npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] create-bundles script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\nishi\AppData\Roaming\npm-cache_logs\2019-07-17T01_27_21_756Z-debug.log

  • User Avatar
    0
    iamnish created

    this is the log file output

    0 info it worked if it ends with ok 1 verbose cli [ 'd:\program\nodejs\node.exe', 1 verbose cli 'C:\Users\nishi\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'create-bundles' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'precreate-bundles', 'create-bundles', 'postcreate-bundles' ] 5 info lifecycle [email protected]~precreate-bundles: [email protected] 6 info lifecycle [email protected]~create-bundles: [email protected] 7 verbose lifecycle [email protected]~create-bundles: unsafe-perm in lifecycle true 8 verbose lifecycle [email protected]~create-bundles: PATH: C:\Users\nishi\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules.bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\dotnet;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files\Microsoft SQL Server\110\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\Yarn\bin;C:\Program Files\Git\cmd;d:\Program\nodejs;C:\Users\nishi\AppData\Local\Microsoft\WindowsApps;C:\Users\nishi.dotnet\tools;C:\Users\nishi\AppData\Local\Yarn\bin;d:\Program\Microsoft VS Code\bin;C:\Users\nishi\AppData\Local\atom\bin;C:\Users\nishi\AppData\Roaming\npm 9 verbose lifecycle [email protected]~create-bundles: CWD: D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc 10 silly lifecycle [email protected]~create-bundles: Args: [ '/d /s /c', 10 silly lifecycle 'webpack --progress --profile --watch --mode=development' ] 11 silly lifecycle [email protected]~create-bundles: Returned: code: 1 signal: null 12 info lifecycle [email protected]~create-bundles: Failed to exec create-bundles script 13 verbose stack Error: [email protected] create-bundles: webpack --progress --profile --watch --mode=development 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (C:\Users\nishi\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:198:13) 13 verbose stack at ChildProcess.<anonymous> (C:\Users\nishi\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:198:13) 13 verbose stack at maybeClose (internal/child_process.js:982:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14 verbose pkgid [email protected] 15 verbose cwd D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc 16 verbose Windows_NT 10.0.17134 17 verbose argv "d:\program\nodejs\node.exe" "C:\Users\nishi\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "create-bundles" 18 verbose node v10.16.0 19 verbose npm v6.10.1-next.1 20 error code ELIFECYCLE 21 error errno 1 22 error [email protected] create-bundles: webpack --progress --profile --watch --mode=development 22 error Exit status 1 23 error Failed at the [email protected] create-bundles script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]

  • User Avatar
    0
    iamnish created

    i have run npm update and then again create-bundles

    D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:93 throw err; ^

    TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined at validateString (internal/validators.js:125:11) at Object.join (path.js:427:7) at fillScriptMappings (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\webpack.config.js:151:39) at Object.<anonymous> (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\webpack.config.js:158:1) at Module._compile (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\v8-compile-cache\v8-compile-cache.js:192:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:690:17) at require (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\v8-compile-cache\v8-compile-cache.js:161:20) at WEBPACK_OPTIONS (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:116:13) at requireConfig (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:118:6) at D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:125:17 at Array.forEach (<anonymous>) at module.exports (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\utils\convert-argv.js:123:15) at yargs.parse (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:71:45) at Object.parse (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\yargs\yargs.js:567:18) at D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:49:8 at Object.<anonymous> (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack-cli\bin\cli.js:365:3) at Module._compile (internal/modules/cjs/loader.js:776:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:690:17) at require (internal/modules/cjs/helpers.js:25:18) at Object.<anonymous> (D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules\webpack\bin\webpack.js:156:2) at Module._compile (internal/modules/cjs/loader.js:776:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] create-bundles: webpack --progress --profile --watch --mode=development npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] create-bundles script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

    npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\nishi\AppData\Roaming\npm-cache_logs\2019-07-17T01_58_20_163Z-debug.log

  • User Avatar
    0
    iamnish created

    log file

    0 info it worked if it ends with ok 1 verbose cli [ 'd:\program\nodejs\node.exe', 1 verbose cli 'C:\Users\nishi\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'create-bundles' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'precreate-bundles', 'create-bundles', 'postcreate-bundles' ] 5 info lifecycle [email protected]~precreate-bundles: [email protected] 6 info lifecycle [email protected]~create-bundles: [email protected] 7 verbose lifecycle [email protected]~create-bundles: unsafe-perm in lifecycle true 8 verbose lifecycle [email protected]~create-bundles: PATH: C:\Users\nishi\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc\node_modules.bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\dotnet;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files\Microsoft SQL Server\110\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn;C:\WINDOWS\System32\OpenSSH;C:\Program Files (x86)\Yarn\bin;C:\Program Files\Git\cmd;d:\Program\nodejs;C:\Users\nishi\AppData\Local\Microsoft\WindowsApps;C:\Users\nishi.dotnet\tools;C:\Users\nishi\AppData\Local\Yarn\bin;d:\Program\Microsoft VS Code\bin;C:\Users\nishi\AppData\Local\atom\bin;C:\Users\nishi\AppData\Roaming\npm 9 verbose lifecycle [email protected]~create-bundles: CWD: D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc 10 silly lifecycle [email protected]~create-bundles: Args: [ '/d /s /c', 10 silly lifecycle 'webpack --progress --profile --watch --mode=development' ] 11 silly lifecycle [email protected]~create-bundles: Returned: code: 1 signal: null 12 info lifecycle [email protected]~create-bundles: Failed to exec create-bundles script 13 verbose stack Error: [email protected] create-bundles: webpack --progress --profile --watch --mode=development 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (C:\Users\nishi\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16) 13 verbose stack at EventEmitter.emit (events.js:198:13) 13 verbose stack at ChildProcess.<anonymous> (C:\Users\nishi\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:198:13) 13 verbose stack at maybeClose (internal/child_process.js:982:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) 14 verbose pkgid [email protected] 15 verbose cwd D:\OneDrive\software\diamCopy\src\ni.diam.Web.Mvc 16 verbose Windows_NT 10.0.17134 17 verbose argv "d:\program\nodejs\node.exe" "C:\Users\nishi\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "run" "create-bundles" 18 verbose node v10.16.0 19 verbose npm v6.10.1-next.1 20 error code ELIFECYCLE 21 error errno 1 22 error [email protected] create-bundles: webpack --progress --profile --watch --mode=development 22 error Exit status 1 23 error Failed at the [email protected] create-bundles script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]

  • User Avatar
    0
    kfrancis created

    Same issue here.

    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 [email protected]
    3 info using [email protected]
    4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
    5 info lifecycle [email protected]~prebuild: [email protected]
    6 info lifecycle [email protected]~build: [email protected]
    7 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
    8 verbose lifecycle [email protected]~build: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\kfrancis\source\repos\BillingSystem\src\BillingSystem.Web.Mvc\node_modules\.bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.21.27702\bin\HostX86\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\vs2019\;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\FSharp\;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\\MSBuild\Current\Bin;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.1\libnvvp;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Docker\Docker\Resources\bin;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\PuTTY\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\dotnet\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Git\cmd;C:\Program Files (x86)\Microsoft SQL Server\Client SDK\ODBC\130\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\DTS\Binn\;C:\Program Files (x86)\Microsoft SQL Server\140\Tools\Binn\ManagementStudio\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Program Files\NVIDIA Corporation\NVIDIA NGX;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program Files\nodejs\;C:\Program Files\NVIDIA Corporation\Nsight Compute 2019.1\;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn\;C:\Program Files (x86)\Yarn\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn\;C:\Users\kfrancis\nuget.exe;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.21.27702\bin\HostX86\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\bin\Roslyn;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Team Tools\Performance Tools;C:\Program Files (x86)\Microsoft Visual Studio\Shared\Common\VSPerfCollectionTools\vs2019\;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\FSharp\;C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x86;C:\Program Files (x86)\Windows Kits\10\bin\x86;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\\MSBuild\Current\Bin;C:\Windows\Microsoft.NET\Framework\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\;C:\Users\kfrancis\AppData\Local\Microsoft\WindowsApps;C:\Users\kfrancis\AppData\Local\GitHubDesktop\bin;C:\Users\kfrancis\AppData\Local\Programs\Azure Data Studio\bin;C:\Users\kfrancis\AppData\Local\Programs\Fiddler;C:\Users\kfrancis\AppData\Roaming\npm;C:\Hugo\bin;C:\Users\kfrancis\AppData\Local\Yarn\bin;C:\Users\kfrancis\AppData\Local\Microsoft\WindowsApps;C:\Users\kfrancis\.dotnet\tools;C:\Users\kfrancis\AppData\Roaming\npm\;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja;C:\Users\kfrancis\AppData\Roaming\npm\;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin;C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\CMake\Ninja
    9 verbose lifecycle [email protected]~build: CWD: C:\Users\kfrancis\source\repos\BillingSystem\src\BillingSystem.Web.Mvc
    10 silly lifecycle [email protected]~build: Args: [ '/d /s /c',
    10 silly lifecycle   'webpack --progress --display=verbose --mode=production --profile --json > compilation-stats.json' ]
    11 silly lifecycle [email protected]~build: Returned: code: 1  signal: null
    12 info lifecycle [email protected]~build: Failed to exec build script
    13 verbose stack Error: [email protected] build: `webpack --progress --display=verbose --mode=production --profile --json > compilation-stats.json`
    13 verbose stack Exit status 1
    13 verbose stack     at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
    13 verbose stack     at EventEmitter.emit (events.js:189:13)
    13 verbose stack     at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
    13 verbose stack     at ChildProcess.emit (events.js:189:13)
    13 verbose stack     at maybeClose (internal/child_process.js:970:16)
    13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
    14 verbose pkgid [email protected]
    15 verbose cwd C:\Users\kfrancis\source\repos\BillingSystem\src\BillingSystem.Web.Mvc
    16 verbose Windows_NT 10.0.18362
    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 v10.15.1
    19 verbose npm  v6.4.1
    20 error code ELIFECYCLE
    21 error errno 1
    22 error [email protected] build: `webpack --progress --display=verbose --mode=production --profile --json > compilation-stats.json`
    22 error Exit status 1
    23 error Failed at the [email protected] build script.
    23 error This is probably not a problem with npm. There is likely additional logging output above.
    24 verbose exit [ 1, true ]
    

    I ran webpack --progress --display=verbose --mode=production --profile --json > compilation-stats.json and I see the following:

    16392ms building
    9ms finish module graph
    3ms sealing
    2ms basic dependencies optimization
    7ms dependencies optimization
    0ms advanced dependencies optimization
    1ms after dependencies optimization
    28ms chunk graph
    4ms after chunk graph
    1ms optimizing
    0ms basic module optimization
    1ms module optimization
    0ms advanced module optimization
    0ms after module optimization
    4ms basic chunk optimization
    0ms chunk optimization
    22ms advanced chunk optimization
    2ms after chunk optimization
    2ms module and chunk tree optimization
    21234ms building
    2ms after module and chunk tree optimization
    1ms basic chunk modules optimization
    2ms chunk modules optimization
    0ms advanced chunk modules optimization
    1ms after chunk modules optimization
    1ms module reviving
    6ms module order optimization
    1ms advanced module order optimization
    1ms before module ids
    2ms module ids
    5ms module id optimization
    2ms chunk reviving
    2ms chunk order optimization
    1ms before chunk ids
    2ms chunk id optimization
    6ms after chunk id optimization
    2ms record modules
    4ms record chunks
    17ms hashing
    280ms content hashing
    1ms after hashing
    0ms record hash
    2ms module assets processing
    53ms chunk assets processing
    84ms additional chunk assets processing
    0ms recording
    5ms additional asset processing
    69331ms chunk asset optimization
    2ms after chunk asset optimization
    0ms asset optimization
    1ms after asset optimization
    12ms after seal
     95% emitting OptimizeCssAssetsWebpackPluginbuffer.js:207
        throw new ERR_INVALID_ARG_TYPE(
        ^
    
    TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
        at Function.from (buffer.js:207:11)
        at writeOut (C:\Users\kfrancis\source\repos\BillingSystem\src\BillingSystem.Web.Mvc\node_modules\webpack\lib\Compiler.js:410:26)
        at C:\Users\kfrancis\source\repos\BillingSystem\src\BillingSystem.Web.Mvc\node_modules\mkdirp\index.js:48:26
        at FSReqWrap.oncomplete (fs.js:155:5)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! [email protected] build: `webpack --progress --display=verbose --mode=production --profile --json > compilation-stats.json`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the [email protected] build script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
  • User Avatar
    0
    alper created
    Support Team

    hi,

    1- First try to replace your webpack.config.js file with this one => https://github.com/aspnetzero/aspnet-zero-core/blob/master/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/webpack.config.js

    2- If you still get errors, try to update your Node to the latest. (restart may require) https://nodejs.org/dist/v12.6.0/node-v12.6.0-x64.msi

  • User Avatar
    0
    kfrancis created
    1. That webpack.config.js is the same as mine, identical.
    2. Node update didn't change anything. Same error.
  • User Avatar
    0
    alper created
    Support Team

    @kfrancis did you also delete node_modules?

  • User Avatar
    0
    kfrancis created

    Deleted node_modules, re-ran yarn, re-ran npm run build, same issue.

    The only change I notice is that today it fails a little faster than before. ;)

    What else can I provide to help here? I'm happy to help, though I'm glad it's not just me experiencing this issue. It's only when running npm run build, create-bundles runs perfectly fine.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @kfrancis

    Is it possible to share your project with us via email ? You can send it to [email protected] if thats ok for you.