question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm run webpack-production throws an exception

See original GitHub issue

0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli ‘/usr/local/bin/node’, 1 verbose cli ‘/usr/local/bin/npm’, 1 verbose cli ‘run’, 1 verbose cli ‘webpack-production’ 1 verbose cli ] 2 info using npm@6.14.5 3 info using node@v14.5.0 4 verbose run-script [ 4 verbose run-script ‘prewebpack-production’, 4 verbose run-script ‘webpack-production’, 4 verbose run-script ‘postwebpack-production’ 4 verbose run-script ] 5 info lifecycle reactide@3.0.0~prewebpack-production: reactide@3.0.0 6 info lifecycle reactide@3.0.0~webpack-production: reactide@3.0.0 7 verbose lifecycle reactide@3.0.0~webpack-production: unsafe-perm in lifecycle true 8 verbose lifecycle reactide@3.0.0~webpack-production: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/ketans/projects/reactide/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.UbuntuonWindows_2004.2020.424.0_x64__79rhkp1fndgsc:/mnt/c/Python38/Scripts/:/mnt/c/Python38/:/mnt/c/Program Files (x86)/Common Files/Intel/Shared Libraries/redist/intel64/compiler:/mnt/c/Program Files (x86)/Intel/Intel® Management Engine Components/iCLS/:/mnt/c/Program Files/Intel/Intel® Management Engine Components/iCLS/:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files (x86)/Intel/Intel® Management Engine Components/DAL:/mnt/c/Program Files/Intel/Intel® Management Engine Components/DAL:/mnt/c/Program Files (x86)/Intel/Intel® Management Engine Components/IPT:/mnt/c/Program Files/Intel/Intel® Management Engine Components/IPT:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files (x86)/Calibre2/:/mnt/c/ProgramData/chocolatey/bin:/mnt/c/Program Files/nodejs/:/mnt/c/Program Files/Git/cmd:/mnt/c/Users/windo/AppData/Local/Programs/Python/Python38-32/Scripts/:/mnt/c/Users/windo/AppData/Local/Programs/Python/Python38-32/:/mnt/c/Users/windo/AppData/Local/Microsoft/WindowsApps:/mnt/c/Program Files/JetBrains/PyCharm 2019.3.3/bin:/mnt/c/Users/windo/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/windo/AppData/Local/JetBrains/jdk8/jre/bin:/mnt/c/tools/dart-sdk/bin:/mnt/c/tools/flutter/bin:/mnt/c/Users/windo/AppData/Roaming/Pub/Cache/bin:/mnt/c/tools/flutter/:/mnt/c/Users/windo/AppData/Roaming/npm:/mnt/c/Users/windo/AppData/Local/GitHubDesktop/bin:/mnt/c/Python27/:/mnt/c/Python27/Scripts/ 9 verbose lifecycle reactide@3.0.0~webpack-production: CWD: /home/ketans/projects/reactide 10 silly lifecycle reactide@3.0.0~webpack-production: Args: [ ‘-c’, ‘webpack --mode production’ ] 11 silly lifecycle reactide@3.0.0~webpack-production: Returned: code: 1 signal: null 12 info lifecycle reactide@3.0.0~webpack-production: Failed to exec webpack-production script 13 verbose stack Error: reactide@3.0.0 webpack-production: webpack --mode production 13 verbose stack Exit status 1 13 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16) 13 verbose stack at EventEmitter.emit (events.js:314:20) 13 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:314:20) 13 verbose stack at maybeClose (internal/child_process.js:1051:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5) 14 verbose pkgid reactide@3.0.0 15 verbose cwd /home/ketans/projects/reactide 16 verbose Linux 4.4.0-19041-Microsoft 17 verbose argv “/usr/local/bin/node” “/usr/local/bin/npm” “run” “webpack-production” 18 verbose node v14.5.0 19 verbose npm v6.14.5 20 error code ELIFECYCLE 21 error errno 1 22 error reactide@3.0.0 webpack-production: webpack --mode production 22 error Exit status 1 23 error Failed at the reactide@3.0.0 webpack-production script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

7reactions
dvarelae858commented, Feb 4, 2021

I manage to solve this issue:

1 -) resolve the peer depencency conflic between monaco-editor and monaco-editor-webpack-plugin ej: I Used these versions “monaco-editor”: “^0.19.0”, “monaco-editor-webpack-plugin”: “^1.8.1”

2 -) install spawn-sync package using npm

3 -) install ttf-loader package using npm

4 -) change webpack.config.js file, search this section: plugins: [ new MonacoWebpackPlugin(), ],

and change it for this one:

plugins: [ new MonacoWebpackPlugin({ features: [‘!gotoSymbol’], }), ],

5 -) add the following loader module config into webpack.config.js, goes into the modules->rules array

{ test: /.ttf$/, use: [ { loader: ‘ttf-loader’, options: { name: ‘./font/[hash].[ext]’, }, }, ] }

6 -) run npm install 7 -) run audit fix… 8 -) execute npm run webpack-production 9 -) execute npm run electron-packager

  1. that’s it,

please tellme if these steps worked for you.

1reaction
jerome-divercommented, Jul 2, 2020

i see also all the bug deprectated list and i’m thinking this project is no more maintain and is now dead.

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm run build / deploy error on windows - Stack Overflow
npm ERR! Failed at the FoodMeUp@1.0.0 deploy script 'NODE_ENV=production webpack -p --config webpack.production.config.js'. npm ERR ...
Read more >
How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >
Watch and WatchOptions | webpack
Webpack can watch files and recompile whenever they change. This page explains how to enable this and a couple of tweaks you can...
Read more >
The best webpack configurations for React applications
Code to be run in the terminal will be written like $ npm install ... After our initial build, we had some errors...
Read more >
All You Need to Know about Webpack in Examples - Medium
I think you probably know how to start a npm project with dependencies, but still, if you don't, no worries, just run those...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found