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.

Development Setup Broken on Windows

See original GitHub issue

Describe the Bug

Running npm i fails at the postinstall step which runs electron-builder install-app-deps. I’ve tried with a fresh installation of Windows - no success.

This is likely a result of https://github.com/camunda/camunda-modeler/issues/2114 which introduced the postinstall script.

Log:

4598 verbose stack Error: grpc@1.24.7 install: `node-pre-gyp install --fallback-to-build --library=static_library`
4598 verbose stack Exit status 1
4598 verbose stack     at EventEmitter.<anonymous> (C:\Users\PhilippFromme\AppData\Roaming\nvm\v14.17.0\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
4598 verbose stack     at EventEmitter.emit (events.js:376:20)
4598 verbose stack     at ChildProcess.<anonymous> (C:\Users\PhilippFromme\AppData\Roaming\nvm\v14.17.0\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
4598 verbose stack     at ChildProcess.emit (events.js:376:20)
4598 verbose stack     at maybeClose (internal/child_process.js:1055:16)
4598 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
4599 verbose pkgid grpc@1.24.7
4600 verbose cwd C:\workspace\camunda\camunda-modeler\app
4601 verbose Windows_NT 10.0.19041
4602 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\PhilippFromme\\AppData\\Roaming\\nvm\\v14.17.0\\node_modules\\npm\\bin\\npm-cli.js" "install" "--production" "--cache-min" "999999999"
4603 verbose node v14.17.0
4604 verbose npm  v6.14.13
4605 error code ELIFECYCLE
4606 error errno 1
4607 error grpc@1.24.7 install: `node-pre-gyp install --fallback-to-build --library=static_library`
4607 error Exit status 1
4608 error Failed at the grpc@1.24.7 install script.
4608 error This is probably not a problem with npm. There is likely additional logging output above.
4609 verbose exit [ 1, true ]

Tasks

  • Clearly document resolution
  • Document resolution, if applicable amend contribution guidelines to cover the required setup steps

Environment

  • OS: Windows 10
  • Camunda Modeler Version: 4.8.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
nikkucommented, May 17, 2021

On Windows you need to take dedicated steps to get node-gyp / native compilation to work.

0reactions
philippfrommecommented, May 17, 2021

I was missing the C++ build tools. Such an easy fix. Thanks for your effort, @barmac and @nikku . 🏅 🎖️ I will update the documentation. Follow-up issue: https://github.com/camunda/camunda-modeler/issues/2274

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix problems that block programs from being installed or ...
The Program Install and Uninstall troubleshooter helps you automatically repair issues when you're blocked from installing or removing programs.
Read more >
How to set up the perfect modern dev environment on Windows
Head to the Settings app, then “Update & Security” and click “For developers” in the bar on the left. On this screen, choose...
Read more >
Fix HP Laptop and PC Issues After Windows 10 Update or ...
Select the Start button, and then go to Settings > Update & security > Windows Update, and select Check for updates. If Windows...
Read more >
Modern Windows 10 development setup - DEV Community ‍ ‍
WSL2's time is not synchronized, cause serious clock drift when you let Windows sleep. SystemD is broken for a large part in WSL2;...
Read more >
How to Repair a Corrupted Windows 10 Installation
The best tool for repairing damaged Windows installations is System File Checker (SFC). Like many of Microsoft's most powerful repair tools, SFC runs...
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